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:
parent
4c61234d81
commit
8029e1836c
5
.bashrc
5
.bashrc
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user