]> git.donarmstrong.com Git - zsh.git/commitdiff
cleanup doc completion
authormartin f. krafft <madduck@madduck.net>
Fri, 22 May 2009 11:31:56 +0000 (13:31 +0200)
committermartin f. krafft <madduck@madduck.net>
Fri, 22 May 2009 11:31:56 +0000 (13:31 +0200)
.zsh/zshrc/30_aliases

index fbbb946b8f970282b2ffb86dded304b77a270648..c630f6ffb68800818f9b0aba97136f1cf4c1f344 100644 (file)
@@ -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'