Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ktimothy/8954751 to your computer and use it in GitHub Desktop.
Save ktimothy/8954751 to your computer and use it in GitHub Desktop.
# save bash history separately for every open terminal
export MYTTY=`tty`
export HISTFILE=$HOME/.bash_history.d/.bash_history_`basename $MYTTY`
export HISTFILESIZE=2000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment