mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-03 15:40:32 +00:00
Allowing arguments to be passed to _python
I'm brand new to fish so I'm not sure if this is a fix of if I'm doing something incorrectly. On fish version 2.1.0 on osx 10.9.2 running pyhttp doesn't start the http server, instead only starts the python shell. This fixes that issue for me at least.
This commit is contained in:
parent
c4aaa9035d
commit
955c87710a
@ -1,8 +1,8 @@
|
||||
# Use python2 if found, otherwise fallback to python.
|
||||
function _python
|
||||
if which python2
|
||||
python2
|
||||
python2 $argv
|
||||
else
|
||||
python
|
||||
python $argv
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user