An attempt at saner Bash defaults. Inspired by Tim Pope's sensible.vim.
Sensible Bash is intended to be a simple starting point for a better Bash user experience out of the box.
Refer to the commented source for a complete list of all the options with explanations. Here's a taste:
Readline bindings to improve on Bash's default tab completion:
Sensible defaults for the command history:
Read more about the settings used here in the article Better Bash History by Tom Ryder.
Options that considerably speed up the ability to navigate throughout the file system:
cdto directory names automatically, so you can change to a directory just by typing its name
cdcommand besides the current working directory (ex:
cdinto it from anywhere, kind of like a bookmarking system for Bash (
You can copy
sensible.bash in your
bashrc, cherry-pick the options you like, or source the file at the top of your
if [ -f ~/bin/sensible.bash ]; then source ~/bin/sensible.bash fi
In order to get Sensible Bash to work correctly, make sure that:
bash_profileso to keep all your configuration in one place.