Add proper pyenv support to fish
This commit is contained in:
@ -1,19 +0,0 @@
|
||||
if not command -s pyenv > /dev/null
|
||||
echo "Install <github.com/yyuu/pyenv> to use 'pyenv'."
|
||||
exit 1
|
||||
end
|
||||
|
||||
set -l pyenv_root ""
|
||||
|
||||
if test -z "$PYENV_ROOT"
|
||||
set pyenv_root ~/.pyenv
|
||||
set -x PYENV_ROOT "$pyenv_root"
|
||||
else
|
||||
set pyenv_root "$PYENV_ROOT"
|
||||
end
|
||||
|
||||
if status --is-login
|
||||
set -x PATH "$pyenv_root/shims" $PATH
|
||||
set -x PYENV_SHELL fish
|
||||
end
|
||||
command mkdir -p "$pyenv_root/"{shims,versions}
|
||||
Reference in New Issue
Block a user