From a3a39fecf3ac234a26f9483286aec0adc34a8fda Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Tue, 4 Jan 2011 14:01:03 +0100 Subject: [PATCH] zshrc: Removing d() As requested by mrud. Acked-by: Michael Prokop Signed-off-by: Frank Terbeck --- doc/grmlzshrc.t2t | 4 ---- etc/zsh/zshrc | 23 ----------------------- 2 files changed, 27 deletions(-) diff --git a/doc/grmlzshrc.t2t b/doc/grmlzshrc.t2t index 8abdf32..621a384 100644 --- a/doc/grmlzshrc.t2t +++ b/doc/grmlzshrc.t2t @@ -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. diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 57c10ee..43f2608 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -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 -# 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() { -- 2.1.4