Skip to content

Instantly share code, notes, and snippets.

@mateuszgachowski-snippets
Created December 4, 2013 18:08
Show Gist options
  • Save mateuszgachowski-snippets/7792484 to your computer and use it in GitHub Desktop.
Save mateuszgachowski-snippets/7792484 to your computer and use it in GitHub Desktop.
Bash: Start webserver in current directory
#!/usr/bin/env python
#Python web-server
function webserver() {
open "http://localhost:${1:-8000}" && $(which python) -m SimpleHTTPServer ${1:-8000}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment