From b5860daf11ac353049cb1654b9414a129e5cfb96 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Wed, 13 May 2026 00:13:57 +0300 Subject: Rework --- roles/host/files/root_bashrc | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 roles/host/files/root_bashrc (limited to 'roles/host/files/root_bashrc') diff --git a/roles/host/files/root_bashrc b/roles/host/files/root_bashrc new file mode 100644 index 0000000..f580db6 --- /dev/null +++ b/roles/host/files/root_bashrc @@ -0,0 +1,7 @@ +HISTCONTROL=ignoredups:erasedups # no duplicate entries +HISTSIZE=100000 # big big history +HISTFILESIZE=100000 # big big history +shopt -s histappend # append to history, don't overwrite it + +# Save and reload the history after each command finishes +PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" -- cgit v1.3