mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-10 07:16:18 -04:00
fish: Suppress annoying stderr outputs from pyenv-sh-activate
This commit is contained in:
parent
af6c157a79
commit
ea120da0c5
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue