oh-my-fish/plugins/python/pyhttp.fish
2013-05-22 12:07:36 -04:00

10 lines
224 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