Fabian Holzer

Don't 'cd' to change directory

We all have only a finite number of keystrokes left and should use them wisely.

I don't know how many years I typed "cd" in the terminal to change my directory, until I learned that the shell can interpret anything you type, which is no command, to execute implicitly as argument to cd. I enable this by setting an option, with adding the following line to my .bashrc:

shopt -s autocd

I hope it might save a few keystrokes for whoever reads this.