head 1.1; branch 1.1.1; access; symbols ISELECT_1_4_0:1.1.1.1 ISELECT_1_3_1:1.1.1.1 ISELECT_1_3_0:1.1.1.1 ISELECT_1_2_0:1.1.1.1 ISELECT_1_1_0:1.1.1.1 ISELECT_1_0_4:1.1.1.1 vendor:1.1.1; locks; strict; comment @# @; 1.1 date 97.10.07.13.34.58; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 97.10.07.13.34.58; author rse; state Exp; branches; next ; desc @@ 1.1 log @Initial revision @ text @## ## .bashrc snippet for iSelect-based 'cd' command ## Copyright (c) 1997 Ralf S. Engelschall, All Rights Reserved. ## # database scan cds () { (cd $HOME; find . -type d -print |\ sed -e "s;^\.;$HOME;" |\ sort -u >$HOME/.dirs ) & } # enhanced cd command cd () { if [ -d $1 ]; then builtin cd $1 else builtin cd `egrep "/$1[^/]*$" $HOME/.dirs |\ iselect -a -Q $1 -n "chdir" -t "Change Directory to..."` fi PS1="\u@@\h:$PWD\n:> " } # make sure we stay at $HOME and # that prompt gets initialized cd # change to parent dir alias -- -='cd ..' # change to last dir alias .='cd $OLDPWD' ##EOF## @ 1.1.1.1 log @Import iSelect 1.0.4 @ text @@