Write to history file immediately.

This commit is contained in:
2023-03-22 11:17:46 +13:00
parent 551e7be5a3
commit 666b61828a

View File

@ -9,7 +9,9 @@
HISTCONTROL=ignoreboth HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it # append to the history file, don't overwrite it
# also ensure we write to history immediately instead of only on terminal close
shopt -s histappend shopt -s histappend
export PROMPT_COMMAND="history -a; history -n"
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=10000 HISTSIZE=10000
@ -108,7 +110,7 @@ if ! shopt -oq posix; then
fi fi
# Configure fuzzy find # Configure fuzzy find
export FZF_DEFAULT_COMMAND="rg --files --follow --no-ignore-vcs --hidden -g '!{**/node_modules/*,**/.git/*}'" export FZF_DEFAULT_COMMAND="rg --files --follow --no-ignore-vcs --hidden -g '!{**/node_modules/*,**/.git/*,**.emacs.d/*}'"
source /usr/share/doc/fzf/examples/key-bindings.bash source /usr/share/doc/fzf/examples/key-bindings.bash
# Configure emacs location and aliases # Configure emacs location and aliases