Make python --version a single line

Pypy outputs two lines and  causes an error this way.
pull/73/head
Jelte Fennema 7 years ago committed by GitHub
parent 48f067bac0
commit b5f7b1eaee

@ -566,7 +566,7 @@ function __bobthefish_prompt_vi -S -d 'Display vi mode'
end
function __bobthefish_virtualenv_python_version -S -d 'Get current python version'
switch (python --version ^&1)
switch (python --version ^| tr '\n' ' ')
case 'Python 2*PyPy*'
echo $__bobthefish_pypy_glyph
case 'Python 3*PyPy*'

Loading…
Cancel
Save