Created
June 29, 2012 16:34
-
-
Save amcclosky/3019024 to your computer and use it in GitHub Desktop.
bash `server` alias
This file contains 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 an HTTP server from a directory, optionally specifying the port | |
# via - http://dl.dropbox.com/u/39519/talks/io-tooling/index.html#13 | |
function server() { | |
local port="${1:-8000}" | |
open "http://localhost:${port}/" | |
python -m SimpleHTTPServer "$port" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment