diff --git a/bashrc b/bashrc index 90722d88..1997858f 100644 --- a/bashrc +++ b/bashrc @@ -544,7 +544,9 @@ alias homebrew-install="mkdir -p ~/.local/bin;cd ~/.local;git clone https://gith # OS X Server alias os-x-server-caching-interface="serveradmin settings caching:Interface =" - +# Simple HTTPd with Python. +alias python2-httpd="python -m SimpleHTTPServer" +alias python3-httpd="python -m http.server" # Allow custom aliases to be put in .aliases or .bash_aliases . diff --git a/zshrc b/zshrc index 1156cd8c..0579062b 100644 --- a/zshrc +++ b/zshrc @@ -518,6 +518,10 @@ alias homebrew-install="mkdir -p ~/.local/bin;cd ~/.local;git clone https://gith # OS X Server alias os-x-server-caching-interface="serveradmin settings caching:Interface =" +# Simple HTTPd with Python. +alias python2-httpd="python -m SimpleHTTPServer" +alias python3-httpd="python -m http.server" + # .aliases if [ -f ~/.aliases ]; then source ~/.aliases