zshrc: Remove doc()
authorFrank Terbeck <ft@bewatermyfriend.org>
Tue, 29 Nov 2011 13:54:39 +0000 (14:54 +0100)
committerMichael Prokop <mika@grml.org>
Tue, 6 Dec 2011 13:50:47 +0000 (14:50 +0100)
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
doc/grmlzshrc.t2t
etc/zsh/zshrc

index 843fd5b..a045a1e 100644 (file)
@@ -509,11 +509,6 @@ heavily.
 : **dnews()**
 Shows the NEWS file for the given package in $PAGER.
 
-: **doc()**
-Takes packagename as argument. Sets current working directory to
-/usr/share/doc/<packagename> and prints out a directory listing.
-
-
 : **edalias()**
 Edit given alias.
 
index b48301d..efd21cf 100644 (file)
@@ -2423,15 +2423,6 @@ inplaceMkDirs() {
 #k# mkdir -p <dir> from string under cursor or marked area
 zle -N inplaceMkDirs && bindkey '^XM' inplaceMkDirs
 
-# Function Usage: doc packagename
-#f5# \kbd{cd} to /usr/share/doc/\textit{package}
-doc() {
-    emulate -L zsh
-    cd /usr/share/doc/$1 && ls
-}
-_doc() { _files -W /usr/share/doc -/ }
-check_com compdef && compdef _doc doc
-
 #f5# Make screenshot
 sshot() {
     [[ ! -d ~/shots  ]] && mkdir ~/shots