by hk__2 · 13y ago · 0 comments
shopt -s autocd
If you type a directory in the command-line, it’ll cd into it, e.g.: $ .. # cd ..
$ ~ # cd ~
$ foo # cd foo
I can’t live without this.On OS X: "-bash: shopt: autocd: invalid shell option name"
Apple and their outdated tools... It gets annoying after a while.
setopt autocd