dotfiles/shell/cd.sh
Benedikt Heine 16aad7f4c5 Adapt shebangs
Convert all shebangs to /usr/bin/env bash, if bash is really required in
the script. Otherwise convert it to /bin/sh.

/bin/bash is not available on all systems, while /usr/bin/env bash and
/bin/sh are.
2018-05-29 00:02:00 +02:00

14 lines
153 B
Bash
Executable file

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