Mar posted 13 Mar 2009 and tagged bash
From Allan Odgaard’s excellent Working With History in Bash:
export HISTCONTROL=erasedups
export HISTSIZE=10000
shopt -s histappend
Pop out
1 2 3 | export HISTCONTROL=erasedups export HISTSIZE=10000 shopt -s histappend |