diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-12-24 13:22:27 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-12-24 13:22:34 +0200 |
| commit | d77e686d06916156700c5f298b5edb4ba3e9642b (patch) | |
| tree | 2a1e5569dd4fa3785b75dad92ff38f29414166a5 /templates/root_bashrc | |
| parent | a977ef97cb1d88b617286fc07ea37a19c8b01e42 (diff) | |
Improvements
Diffstat (limited to 'templates/root_bashrc')
| -rw-r--r-- | templates/root_bashrc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/root_bashrc b/templates/root_bashrc new file mode 100644 index 0000000..f580db6 --- /dev/null +++ b/templates/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" |
