Miscellaneous bash tips

A few useful configuration bits:

# Don't put duplicate lines in the history
export HISTCONTROL=ignoredups

# When you use history expansion (the !something), allows to edit the
# expanded line before executing it
shopt -s histverify

# Correct spelling mistakes when using 'cd'
shopt -s cdspell

# Do not attempt completion on an empty line
shopt -s no_empty_cmd_completion

A few useful keystrokes:

For more useful keystrokes, run man bash, look for "Commands for Manipulating the History" and read down from there.