commit c85fdfb876895af6d3d9d534c063cc16b77a2756
parent 197f82a875b889f86eae8863f0c0c9e27a83fdea
Author: Remy Noulin <loader2x@gmail.com>
Date: Fri, 19 Jan 2024 11:37:19 +0200
add PROMPT_COMMAND in bashrc to append last command to history immediately
dotfiles/.bashrc | 1 +
1 file changed, 1 insertion(+)
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/dotfiles/.bashrc b/dotfiles/.bashrc
@@ -7,6 +7,7 @@
# append to the history file, don't overwrite it
shopt -s histappend
+export PROMPT_COMMAND='history -a'
# don't put duplicate lines in the history. See bash(1) for more options
export HISTCONTROL=ignoredups