Bash history now uses host specific file.

This commit is contained in:
Darren 'Tadgy' Austin 2020-07-03 12:06:28 +01:00
commit ec24e87c5a

View file

@ -161,8 +161,9 @@ IGNOREEOF=0
# History control. # History control.
HISTCONTROL="ignoredups" HISTCONTROL="ignoredups"
HISTFILE="$HOME/.bash_history-$(hostname --short)"
HISTFILESIZE=100000 HISTFILESIZE=100000
HISTIGNORE="w:bg:bg *:fg:fg *:jobs:exit:pwd:clear:history" HISTIGNORE="bg:bg *:fg:fg *:jobs:exit:clear:history"
HISTSIZE=-1 HISTSIZE=-1
HISTTIMEFORMAT="%d/%m/%y %H:%M:%S " HISTTIMEFORMAT="%d/%m/%y %H:%M:%S "
history -r history -r