dotfiles/shell/cd.sh

15 lines
152 B
Bash
Raw Normal View History

2017-01-26 13:48:55 +01:00
#!/bin/sh
2017-01-26 13:48:55 +01:00
#correct some fast tipped cds
c() {
if [ "$1" == "d.." ]; then
2017-01-26 13:48:55 +01:00
cd ..;
pwd;
fi
if [ -d "$1" ]; then
cd "$1";
2017-01-26 13:48:55 +01:00
pwd;
fi
return 0;
}