bashrc & zshrc: add aliases pythonX-httpd. Closes #17 .

This commit is contained in:
Mikaela Suomalainen 2014-05-13 12:41:26 +03:00
parent c39b2470d7
commit 83ccf48080
2 changed files with 7 additions and 1 deletions

4
bashrc
View File

@ -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 .

4
zshrc
View File

@ -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