You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# 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
|