zshrc: Removing d()
authorFrank Terbeck <ft@grml.org>
Tue, 4 Jan 2011 13:01:03 +0000 (14:01 +0100)
committerFrank Terbeck <ft@grml.org>
Tue, 4 Jan 2011 13:01:45 +0000 (14:01 +0100)
As requested by mrud.

Acked-by: Michael Prokop <mika@grml.org>
Signed-off-by: Frank Terbeck <ft@grml.org>
doc/grmlzshrc.t2t
etc/zsh/zshrc

index 8abdf32..621a384 100644 (file)
@@ -534,10 +534,6 @@ Generates a changelog using rcs2log and shows it in $PAGER.
 : **cvss()**
 Shows cvs status of given files.
 
-: **d()**
-Presents a numbered listing of the directory stack. Then changes current
-working directory to the one chosen by the user.
-
 : **dchange()**
 Shows the changelog of given package in $PAGER.
 
index 57c10ee..43f2608 100644 (file)
@@ -3550,29 +3550,6 @@ alias GREP='grep -i --color=auto'
 #f5# Watch manpages in a stretched style
 man2() { PAGER='dash -c "sed G | /usr/bin/less"' command man "$@" ; }
 
-# d():Copyright 2005 Nikolai Weibull <nikolai@bitwi.se>
-# note: option AUTO_PUSHD has to be set
-#f5# Jump between directories
-d() {
-    emulate -L zsh
-    autoload -U colors
-    local color=$fg_bold[blue]
-    integer i=0
-    dirs -p | while read dir; do
-        local num="${$(printf "%-4d " $i)/ /.}"
-        printf " %s  $color%s$reset_color\n" $num $dir
-        (( i++ ))
-    done
-    integer dir=-1
-    read -r 'dir?Jump to directory: ' || return
-    (( dir == -1 )) && return
-    if (( dir < 0 || dir >= i )); then
-        echo d: no such directory stack entry: $dir
-        return 1
-    fi
-    cd ~$dir
-}
-
 # usage example: 'lcheck strcpy'
 #f5# Find out which libs define a symbol
 lcheck() {