# Start an HTTP server from a directory,
# optional y specifying the port
# Add #!/usr/bin/env python to ~/.zshrc

function server() {
  local port="${1:-8000}"
	open "http://localhost:${port}/"
	python -m SimpleHTTPServer "$port"
}