]> git.donarmstrong.com Git - zsh.git/blobdiff - .zsh/zshrc/30_aliases
cleanup doc completion
[zsh.git] / .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'