fish: Suppress annoying stderr outputs from pyenv-sh-activate

This commit is contained in:
Yamashita Yuu
2014-06-02 22:32:03 +09:00
parent af6c157a79
commit ea120da0c5

View File

@@ -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