http://unix.stackexchange.com/questions/1288/preserve-bash-history-in-multiple-terminal-windows