From: Frank Terbeck Date: Tue, 29 Nov 2011 13:54:39 +0000 (+0100) Subject: zshrc: Remove doc() X-Git-Url: https://git.grml.org/?a=commitdiff_plain;h=3d6c44b4decec672f6baa03669a8a6d0b4b66b3e;hp=aa9c80549043e2d8bf92b37e3f8d4eaccb47b2ef;p=grml-etc-core.git zshrc: Remove doc() Signed-off-by: Frank Terbeck --- diff --git a/doc/grmlzshrc.t2t b/doc/grmlzshrc.t2t index 843fd5b..a045a1e 100644 --- a/doc/grmlzshrc.t2t +++ b/doc/grmlzshrc.t2t @@ -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/ and prints out a directory listing. - - : **edalias()** Edit given alias. diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 7392934..a034003 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2422,15 +2422,6 @@ inplaceMkDirs() { #k# mkdir -p 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