mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-30 04:23:36 +08:00
10 lines
240 B
Fish
10 lines
240 B
Fish
|
# start in-place a simple http server, take a optional parameter for the port number
|
||
|
function pyhttp
|
||
|
if test -n "$argv"
|
||
|
set HTTPPORT $argv
|
||
|
else
|
||
|
set HTTPPORT 1025
|
||
|
end
|
||
|
python -m SimpleHTTPServer $HTTPPORT;
|
||
|
end
|