Varius
This commit is contained in:
+15
-6
@@ -1,7 +1,16 @@
|
||||
set -Ux PYENV_ROOT $HOME/.pyenv
|
||||
set -U fish_user_paths $PYENV_ROOT/bin $fish_user_paths
|
||||
while set pyenv_index (contains -i -- "/home/df/.pyenv/shims" $PATH)
|
||||
set -eg PATH[$pyenv_index]; end; set -e pyenv_index
|
||||
set -gx PATH '/home/df/.pyenv/shims' $PATH
|
||||
set -gx PYENV_SHELL fish
|
||||
command pyenv rehash
|
||||
function pyenv
|
||||
set command $argv[1]
|
||||
set -e argv[1]
|
||||
|
||||
# Load pyenv automatically by appending
|
||||
# the following to ~/.config/fish/config.fish:
|
||||
|
||||
# Restart your shell for the changes to take effect.
|
||||
switch "$command"
|
||||
case rehash shell
|
||||
source (pyenv "sh-$command" $argv|psub)
|
||||
case "*"
|
||||
command pyenv "$command" $argv
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user