Category Archives: bash

Maintaining Bash History across all the terminals

HISTCONTROL=ignoredups:erasedups
HISTFILE=~/.bash_history
HISTFILESIZE=5000
HISTSIZE=5000
shopt -s histappend

Append all above lines to ~/.bashrc and then
$ source ~/.bashrc

Advertisements