mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-13 14:03:53 -05:00
fish: Suppress annoying stderr outputs from pyenv-sh-activate
This commit is contained in:
@@ -80,8 +80,8 @@ fish )
|
||||
cat <<EOS
|
||||
function _pyenv_virtualenv_hook --on-event fish_prompt;
|
||||
if [ "\$VIRTUAL_ENV" != (pyenv prefix) ]
|
||||
pyenv deactivate
|
||||
pyenv activate 2>/dev/null; or true
|
||||
eval (pyenv sh-deactivate)
|
||||
eval (pyenv sh-activate 2>/dev/null); or true
|
||||
end
|
||||
end
|
||||
EOS
|
||||
|
||||
Reference in New Issue
Block a user