From 234e2a3b82bac0f92f900ce3c833be394d3004f7 Mon Sep 17 00:00:00 2001 From: bretello Date: Fri, 13 Mar 2020 21:33:14 +0100 Subject: [PATCH] zsh: add history-related setopt options, remove completeealiases --- brethil_dotfile.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/brethil_dotfile.sh b/brethil_dotfile.sh index 77f1ff9..4a704ef 100755 --- a/brethil_dotfile.sh +++ b/brethil_dotfile.sh @@ -16,8 +16,19 @@ fi # Enable zsh autocorrection setopt CORRECT_ALL +# share history across multiple zsh sessions +setopt SHARE_HISTORY +# append to history +setopt APPEND_HISTORY + +# adds commands as they are typed, not at shell exit +setopt INC_APPEND_HISTORY + +# Execute commands without verifying after prompt substitution (!!, !$, etc) +setopt NO_HIST_VERIFY + # Fix command completions on aliases -setopt completealiases +# setopt completealiases ## Misc environment variables