From 83ccf48080c177d080ec8284600a3c828005348a Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Tue, 13 May 2014 12:41:26 +0300 Subject: [PATCH] bashrc & zshrc: add aliases pythonX-httpd. Closes #17 . --- bashrc | 4 +++- zshrc | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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