vim/zsh/zsh.d/zshfunctions/cdb

6 lines
57 B
Plaintext

if [ -d $1 ]; then
cd $1
else
cd `dirname $1`
fi