1
0
mirror of https://github.com/meineerde/dotfiles.git synced 2026-02-06 00:53:23 +00:00

Simple http server in the current directory

This commit is contained in:
Holger Just 2012-02-09 11:42:35 +01:00
parent 4c61234d81
commit 8029e1836c

View File

@ -246,7 +246,10 @@ alias rs="rails server -b 127.0.0.1"
alias rc="rails console"
ss() { if [[ -x script/server ]]; then script/server -b 127.0.0.1 $@; else rs $@; fi }
sc() { if [[ -x script/console ]]; then script/console $@; else rc $@; fi }
http() {
port=${1:-8000}
python -m SimpleHTTPServer $port
}
# if cat is called on a directory, call ls instead
cat() {