mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-22 23:10:47 +00:00
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
1 changed files with 5 additions and 1 deletions
|
@ -34,7 +34,11 @@ root="${0%/*}/.."
|
|||
if [ -z "$print" ]; then
|
||||
case "$shell" in
|
||||
bash )
|
||||
profile='~/.bash_profile'
|
||||
if [ -f "${HOME}/.bashrc" ] && [ ! -f "${HOME}/.bash_profile" ]; then
|
||||
profile='~/.bashrc'
|
||||
else
|
||||
profile='~/.bash_profile'
|
||||
fi
|
||||
;;
|
||||
zsh )
|
||||
profile='~/.zshrc'
|
||||
|
|
Loading…
Reference in a new issue