diff --git a/fish_prompt.fish b/fish_prompt.fish index 67b38c9..0a3f463 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -650,7 +650,7 @@ function __bobthefish_prompt_rubies -S -d 'Display current Ruby information' end function __bobthefish_virtualenv_python_version -S -d 'Get current Python version' - switch (python --version ^| tr '\n' ' ') + switch (python --version ^&1 | tr '\n' ' ') case 'Python 2*PyPy*' echo $__bobthefish_pypy_glyph case 'Python 3*PyPy*'