Skip to content

Instantly share code, notes, and snippets.

@vidul-nikolaev-petrov
Last active April 21, 2017 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vidul-nikolaev-petrov/9a37b388faed23d26a93ba2956aef681 to your computer and use it in GitHub Desktop.
Save vidul-nikolaev-petrov/9a37b388faed23d26a93ba2956aef681 to your computer and use it in GitHub Desktop.
Save bash history per tty
# command (one-off step)
mkdir -m700 ~/.history
# in .bashrc
HISTFILE=~/.history/history.`tty | cut -d/ -f4`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment