mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-26 12:52:43 +01:00
bashrc & zshrc: decrease priority of pyenv
Now it's the last thing in home directory.
This commit is contained in:
parent
412bbf2f54
commit
a0f6b844c0
2
bashrc
2
bashrc
@ -197,7 +197,7 @@ alias pyenv-install="\wget -O /tmp/pyenv-installer https://raw.github.com/yyuu/p
|
||||
alias pyenv-install-alt="cd ~;git clone https://github.com/yyuu/pyenv.git $PYENV_ROOT"
|
||||
|
||||
# Sets PATH. To add another path, add :</path/to/new/path> to string below.
|
||||
PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$HOME/.local/bin:$HOME/.local/sbin:$HOME/.local/games:$HOME/bin:$HOME/sbin:$HOME/games:/usr/local/bin:/usr/local/sbin:/usr/local/games:/usr/bin:/usr/sbin:/usr/games:/bin:/sbin:/games:$PATH
|
||||
PATH=$HOME/.local/bin:$HOME/.local/sbin:$HOME/.local/games:$PYENV_ROOT/shims:$PYENV_ROOT/bin:$HOME/bin:$HOME/sbin:$HOME/games:/usr/local/bin:/usr/local/sbin:/usr/local/games:/usr/bin:/usr/sbin:/usr/games:/bin:/sbin:/games:$PATH
|
||||
|
||||
# Removes duplicates from $PATH. Copied from http://unix.stackexchange.com/a/14896
|
||||
PATH=$(echo "$PATH" | awk -v RS=':' -v ORS=":" '!a[$1]++{if (NR > 1) printf ORS; printf $a[$1]}')
|
||||
|
2
zshrc
2
zshrc
@ -136,7 +136,7 @@ alias pyenv-install="\wget -O /tmp/pyenv-installer https://raw.github.com/yyuu/p
|
||||
alias pyenv-install-alt="cd ~;git clone https://github.com/yyuu/pyenv.git $PYENV_ROOT"
|
||||
|
||||
# Sets PATH. To add another path, add :</path/to/new/path> to string below.
|
||||
PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$HOME/.local/bin:$HOME/.local/sbin:$HOME/.local/games:$HOME/bin:$HOME/sbin:$HOME/games:/usr/local/bin:/usr/local/sbin:/usr/local/games:/usr/bin:/usr/sbin:/usr/games:/bin:/sbin:/games:$PATH
|
||||
PATH=$HOME/.local/bin:$HOME/.local/sbin:$HOME/.local/games:$HOME/bin:$HOME/sbin:$HOME/games:$PYENV_ROOT/shims:$PYENV_ROOT/bin:/usr/local/bin:/usr/local/sbin:/usr/local/games:/usr/bin:/usr/sbin:/usr/games:/bin:/sbin:/games:$PATH
|
||||
|
||||
# Removes duplicates from $PATH. Copied from http://unix.stackexchange.com/a/14896
|
||||
PATH=$(echo "$PATH" | awk -v RS=':' -v ORS=":" '!a[$1]++{if (NR > 1) printf ORS; printf $a[$1]}')
|
||||
|
Loading…
Reference in New Issue
Block a user