mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-24 05:43:29 +08:00
11 lines
226 B
Fish
11 lines
226 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
|