mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
Improve python version detection.
This commit is contained in:
parent
845f5f4aa6
commit
1a20ff7194
@ -371,8 +371,9 @@ end
|
||||
|
||||
function __bobthefish_virtualenv_python_version -S -d 'Get current python version'
|
||||
set -l python_version (readlink (which python))
|
||||
switch "$python_version"
|
||||
case 'python2*'
|
||||
[ -z "$python_version" ]; and set python_version (which python)
|
||||
switch (basename "$python_version")
|
||||
case 'python' 'python2*'
|
||||
echo $__bobthefish_superscript_glyph[2]
|
||||
case 'python3*'
|
||||
echo $__bobthefish_superscript_glyph[3]
|
||||
|
Loading…
Reference in New Issue
Block a user