From 32adff6575bdbd1f2975ddc69541559b512965e8 Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Tue, 29 Nov 2011 14:54:39 +0100 Subject: [PATCH] zshrc: Remove doc() Signed-off-by: Frank Terbeck --- doc/grmlzshrc.t2t | 5 ----- etc/zsh/zshrc | 9 --------- 2 files changed, 14 deletions(-) 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 b48301d..efd21cf 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2423,15 +2423,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 -- 2.1.4