From 39d2739fb7a652cd638ed73ef1acdc276471af0c Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Thu, 1 Mar 2018 15:51:03 -0800 Subject: [PATCH] Fix python version detection with pypy (probably) See #137 --- fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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*'