# Some settings stolen from sensible.bash # Automatically trim long paths in the prompt (requires Bash 4.x) #PROMPT_DIRTRIM=2 # Perform file completion in a case insensitive fashion bind "set completion-ignore-case on" # Save multi-line commands as one command shopt -s cmdhist # Avoid duplicate entries HISTCONTROL="erasedups:ignoreboth" # Enable incremental history search with up/down arrows (also Readline goodness) # Learn more about this here: http://codeinthehole.com/writing/the-most-important-command-line-tip-incremental-history-searching-with-inputrc/ bind '"\e[A": history-search-backward' bind '"\e[B": history-search-forward' bind '"\e[C": forward-char' bind '"\e[D": backward-char' # vi editing mode set -o vi