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 cat <<EOS
function _pyenv_virtualenv_hook --on-event fish_prompt; function _pyenv_virtualenv_hook --on-event fish_prompt;
if [ "\$VIRTUAL_ENV" != (pyenv prefix) ] if [ "\$VIRTUAL_ENV" != (pyenv prefix) ]
pyenv deactivate eval (pyenv sh-deactivate)
pyenv activate 2>/dev/null; or true eval (pyenv sh-activate 2>/dev/null); or true
end end
end end
EOS EOS