From ec24e87c5a4dab40b2370e28e33f55b8d8aca7f2 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Fri, 3 Jul 2020 12:06:28 +0100 Subject: [PATCH] Bash history now uses host specific file. --- .bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 4a68598..cd036b9 100644 --- a/.bashrc +++ b/.bashrc @@ -161,8 +161,9 @@ IGNOREEOF=0 # History control. HISTCONTROL="ignoredups" +HISTFILE="$HOME/.bash_history-$(hostname --short)" HISTFILESIZE=100000 -HISTIGNORE="w:bg:bg *:fg:fg *:jobs:exit:pwd:clear:history" +HISTIGNORE="bg:bg *:fg:fg *:jobs:exit:clear:history" HISTSIZE=-1 HISTTIMEFORMAT="%d/%m/%y %H:%M:%S " history -r