mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
anypython: Add more versions
This commit is contained in:
parent
c735dafb98
commit
677e4ff698
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ function __fish_anypython
|
||||||
# Try python3 first, because that's usually faster and generally nicer.
|
# Try python3 first, because that's usually faster and generally nicer.
|
||||||
# Do not consider the stub /usr/bin/python3 that comes installed on Darwin to be Python
|
# Do not consider the stub /usr/bin/python3 that comes installed on Darwin to be Python
|
||||||
# unless Xcode reports a real directory path.
|
# unless Xcode reports a real directory path.
|
||||||
for py in python3 python3.{9,8,7,6,5,4,3} python2 python2.7 python
|
for py in python3 python3.{12,11,10,9,8,7,6,5,4,3} python2 python2.7 python
|
||||||
if set -l py_path (command -s $py)
|
if set -l py_path (command -s $py)
|
||||||
if string match -q /usr/bin/python3 -- $py_path
|
if string match -q /usr/bin/python3 -- $py_path
|
||||||
and string match -q Darwin -- "$(uname)"
|
and string match -q Darwin -- "$(uname)"
|
||||||
|
|
Loading…
Reference in a new issue