fix http-dir

This commit is contained in:
Martinez 2016-02-02 16:34:13 +01:00
parent 934b9cd4cc
commit 9c712824eb

View file

@ -18,7 +18,6 @@ alias gitc="git commit"
alias gitp="git push" alias gitp="git push"
alias gitl="git log" alias gitl="git log"
alias gitd="git diff --word-diff" alias gitd="git diff --word-diff"
alias http-dir="echo "Serving $CWD on 0.0.0.0:55555"; /usr/sbin/thttpd -D -d . -p 55555 -l -"
alias Y="youtube-dl --no-check-certificate" alias Y="youtube-dl --no-check-certificate"
alias Yall="youtube-dl -o \"%(autonumber)s-%(title)s.%(ext)s\"" alias Yall="youtube-dl -o \"%(autonumber)s-%(title)s.%(ext)s\""
alias units="units -v" alias units="units -v"
@ -91,6 +90,11 @@ cds() {
cd /mnt/storage/$USER/$1 cd /mnt/storage/$USER/$1
} }
http-dir() {
echo "Serving $CWD on 0.0.0.0:55555"
/usr/sbin/thttpd -D -d . -p 55555 -l -
}
HISTFILE=~/.history # soubor pro ukládání do historie HISTFILE=~/.history # soubor pro ukládání do historie
SAVEHIST=5000 # ukládá se 5000 příkazů SAVEHIST=5000 # ukládá se 5000 příkazů