From: martin f. krafft Date: Fri, 22 May 2009 11:31:56 +0000 (+0200) Subject: cleanup doc completion X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/0701131d8dcb80689a38b892abc1994b1d9bf5cc?ds=inline;hp=--cc cleanup doc completion --- 0701131d8dcb80689a38b892abc1994b1d9bf5cc diff --git a/.zsh/zshrc/30_aliases b/.zsh/zshrc/30_aliases index fbbb946..c630f6f 100644 --- a/.zsh/zshrc/30_aliases +++ b/.zsh/zshrc/30_aliases @@ -70,9 +70,8 @@ alias bug='BROWSER=www-browser bts show' # handy documentation lookup on Debian # from http://www.michael-prokop.at/computer/config/.zshrc -doc() { cd /usr/share/doc/$1 && ls } -_doc() { _files -W /usr/share/doc -/ } -compdef _doc doc +doc() { cd /usr/share/doc/$1 } +compdef '_files -W /usr/share/doc -/' doc alias giti='git init && git add . && git commit -minitial\ checkin && git tag orig'