Thursday, December 30, 2010

Multi Terminal Bash History

Add the following to ~/.bashrc:

# Bash history fixes
shopt -s histappend
export PROMPT_COMMAND='history -a'
export HISTSIZE=5000

Commands from all terminals will be appended to the .bash_history file instead of replacing it. Very useful for if you routinely use multiple terminals.

No comments: