oh-my-fish/plugins/python/pyhttp.fish

11 lines
226 B
Fish
Raw Normal View History

2013-05-22 05:42:17 +08:00
# 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;
2013-05-22 05:42:17 +08:00
end