Created
January 3, 2015 18:24
-
-
Save mbildner/6da45fd56cc833062514 to your computer and use it in GitHub Desktop.
pserve bash profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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