Last active
April 21, 2017 02:56
-
-
Save vidul-nikolaev-petrov/9a37b388faed23d26a93ba2956aef681 to your computer and use it in GitHub Desktop.
Save bash history per tty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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