Bash doesn't always read .bashrc
This commit is contained in:
parent
f4fb45b114
commit
087e13bc5e
1 changed files with 14 additions and 0 deletions
|
@ -3,3 +3,17 @@ if [ -r "$HOME/.profile" ]
|
|||
then
|
||||
. "$HOME/.profile"
|
||||
fi
|
||||
|
||||
case "$-" in
|
||||
*i*)
|
||||
# Shell is interactive.
|
||||
if [ -r "$HOME/.bashrc" ]
|
||||
then
|
||||
. "$HOME/.bashrc"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
# Shell is not interactive.
|
||||
return 1
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue