mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-22 18:52:45 +01:00
bashrc & zshrc: check that we have pyenv before trying to apply it.
This commit is contained in:
parent
77c2a6f864
commit
0f301848ff
5
bashrc
5
bashrc
@ -194,7 +194,10 @@ alias pyenv-install="cd ~;git clone https://github.com/yyuu/pyenv.git $PYENV_ROO
|
||||
PATH=$PYENV_ROOT/bin:$HOME/.local/bin:$HOME/.local/sbin:$HOME/.local/games:$HOME/bin:$HOME/sbin:$HOME/games:$HOME/tmcbeans/bin:/opt/local/bin:/opt/local/sbin:/opt/local/games:/usr/local/bin:/usr/local/sbin:/usr/local/games:/bin:/sbin:/games:/usr/bin:/usr/sbin:/usr/games:$PATH
|
||||
|
||||
# Apply pyenv changes.
|
||||
eval "$(pyenv init -)"
|
||||
|
||||
if [ -d "$PYENV_ROOT" ]; then
|
||||
eval "$(pyenv init -)"
|
||||
fi
|
||||
|
||||
# "Changes" home directory without root. Uncomment both lines below this.
|
||||
#export HOME=<path to new home>
|
||||
|
4
zshrc
4
zshrc
@ -137,7 +137,9 @@ alias pyenv-install="cd ~;git clone https://github.com/yyuu/pyenv.git $PYENV_ROO
|
||||
PATH=$PYENV_ROOT/bin:$HOME/.local/bin:$HOME/.local/sbin:$HOME/.local/games:$HOME/bin:$HOME/sbin:$HOME/games:$HOME/tmcbeans/bin:/opt/local/bin:/opt/local/sbin:/opt/local/games:/usr/local/bin:/usr/local/sbin:/usr/local/games:/bin:/sbin:/games:/usr/bin:/usr/sbin:/usr/games:$PATH
|
||||
|
||||
# Apply pyenv changes.
|
||||
eval "$(pyenv init -)"
|
||||
if [ -d "$PYENV_ROOT" ]; then
|
||||
eval "$(pyenv init -)"
|
||||
fi
|
||||
|
||||
# "Changes" home directory without root. Uncomment both lines below this.
|
||||
#export HOME=<path to new home>
|
||||
|
Loading…
Reference in New Issue
Block a user