dotfiles/shell/cd.sh

14 lines
152 B
Bash
Executable file

#!/bin/sh
#correct some fast tipped cds
c() {
if [ "$1" == "d.." ]; then
cd ..;
pwd;
fi
if [ -d "$1" ]; then
cd "$1";
pwd;
fi
return 0;
}