Please bear with us as we work to restore functionality to dotfiles.org.
chenlevy
/cd_dot_dot_dot.bash
`cd' A-La 4DOS and MS-DOS 6.
...Now if I could only figure out how to modify my bash-completion file to work with that... (if you do please drop me a line at: dotfiles DOT org AT chenlevy DOT com - TIA).
# @usage:
# $ cd ... # = cd ../..
# $ cd .... # = cd ../../..
# etc.
function cd() {
if [ -d "$1" ] ; then
builtin cd "$1"
else
local E="s:\.\.\.:../..:g"
builtin cd $(echo "$1" | sed -e "$E" -e "$E" -e "$E")
fi
}