From 0701131d8dcb80689a38b892abc1994b1d9bf5cc Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 22 May 2009 13:31:56 +0200 Subject: [PATCH] cleanup doc completion --- .zsh/zshrc/30_aliases | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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' -- 2.39.5