From 9c712824eb46a485df3e12c5afda37b8bc94c442 Mon Sep 17 00:00:00 2001 From: Martinez Date: Tue, 2 Feb 2016 16:34:13 +0100 Subject: [PATCH 1/3] 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ů From 0b3ae53eecb3b1bb7a529fcd89b5fe4d1f68a72c Mon Sep 17 00:00:00 2001 From: Martinez Date: Tue, 2 Feb 2016 16:35:58 +0100 Subject: [PATCH 2/3] fix http-dir fix :-) --- dotfiles/system/etc/zsh/zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/system/etc/zsh/zshrc b/dotfiles/system/etc/zsh/zshrc index 0103104..8f3f375 100644 --- a/dotfiles/system/etc/zsh/zshrc +++ b/dotfiles/system/etc/zsh/zshrc @@ -91,7 +91,7 @@ cds() { } http-dir() { - echo "Serving $CWD on 0.0.0.0:55555" + echo "Serving $PWD on 0.0.0.0:55555" /usr/sbin/thttpd -D -d . -p 55555 -l - } From 21197c5ba9e7782e0e98df948935ccceec8c1c2e Mon Sep 17 00:00:00 2001 From: Martinez Date: Thu, 4 Feb 2016 14:09:22 +0100 Subject: [PATCH 3/3] zshrc - enable zmv - add noglob to youtube-dl aliases --- dotfiles/system/etc/zsh/zshrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dotfiles/system/etc/zsh/zshrc b/dotfiles/system/etc/zsh/zshrc index 8f3f375..45b0d2c 100644 --- a/dotfiles/system/etc/zsh/zshrc +++ b/dotfiles/system/etc/zsh/zshrc @@ -18,8 +18,8 @@ alias gitc="git commit" alias gitp="git push" alias gitl="git log" alias gitd="git diff --word-diff" -alias Y="youtube-dl --no-check-certificate" -alias Yall="youtube-dl -o \"%(autonumber)s-%(title)s.%(ext)s\"" +alias Y="noglob youtube-dl --no-check-certificate" +alias Yall="noglob youtube-dl -o \"%(autonumber)s-%(title)s.%(ext)s\"" alias units="units -v" # Edit the current command line in $EDITOR @@ -124,6 +124,9 @@ autoload -U compinit # aktivuje "standardní" pravidla pro doplňování compinit autoload colors zsh/terminfo +# bulk rename tool +autoload zmv + source /usr/share/over-prompt/zsh-init # keyboard stuff