Skip to content

Instantly share code, notes, and snippets.

@mbildner
Created January 3, 2015 18:24
Show Gist options
  • Save mbildner/6da45fd56cc833062514 to your computer and use it in GitHub Desktop.
Save mbildner/6da45fd56cc833062514 to your computer and use it in GitHub Desktop.
pserve bash profile
# start python simpleHTTPServer in current directory
function pserve {
if [[ -z $1 ]]; then
PYTHON_SERVER_PORT=8000
else
PYTHON_SERVER_PORT=$1
fi
python -m SimpleHTTPServer $PYTHON_SERVER_PORT
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment