If there is .bashrc
but no .bash_profile
, recommend the former
This is for Linux desktop platforms that have Terminal application configured to start shells in interactive but not login mode. Creating a `~/.bash_profile` would also cause `~/.profile` to not run, which might be a problem on Ubuntu which ships with a default `~/.profile`.
This commit is contained in:
parent
074161f9c1
commit
6913fee89a
@ -34,7 +34,11 @@ root="${0%/*}/.."
|
|||||||
if [ -z "$print" ]; then
|
if [ -z "$print" ]; then
|
||||||
case "$shell" in
|
case "$shell" in
|
||||||
bash )
|
bash )
|
||||||
|
if [ -f "${HOME}/.bashrc" ] && [ ! -f "${HOME}/.bash_profile" ]; then
|
||||||
|
profile='~/.bashrc'
|
||||||
|
else
|
||||||
profile='~/.bash_profile'
|
profile='~/.bash_profile'
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
zsh )
|
zsh )
|
||||||
profile='~/.zshrc'
|
profile='~/.zshrc'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user