From 9c712824eb46a485df3e12c5afda37b8bc94c442 Mon Sep 17 00:00:00 2001 From: Martinez Date: Tue, 2 Feb 2016 16:34:13 +0100 Subject: [PATCH] fix http-dir --- dotfiles/system/etc/zsh/zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dotfiles/system/etc/zsh/zshrc b/dotfiles/system/etc/zsh/zshrc index 33be129..0103104 100644 --- a/dotfiles/system/etc/zsh/zshrc +++ b/dotfiles/system/etc/zsh/zshrc @@ -18,7 +18,6 @@ alias gitc="git commit" alias gitp="git push" alias gitl="git log" 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 Yall="youtube-dl -o \"%(autonumber)s-%(title)s.%(ext)s\"" alias units="units -v" @@ -91,6 +90,11 @@ cds() { 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 SAVEHIST=5000 # ukládá se 5000 příkazů