From 6f8d945ed318016ba72e239bc36b3f249725f747 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 5 Dec 2019 17:03:07 +0100 Subject: [PATCH] [UPDATE][ZSH] Reload history when searching This allows for searching commands that were used in other shells that weren't quit yet. --- zsh/.zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index b95427b..0d9782a 100755 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -10,8 +10,8 @@ SAVEHIST=10000 # Allow for command substitution in PS1 to have a common prompt with bash setopt promptsubst -# Append to history to avoid losing commands when multiple shells are open -setopt appendhistory +# Append incrementally to the history and reload it whenever used +setopt share_history # Show an error when a globbing expansion doesn't find any match setopt nomatch # List on ambiguous completion and Insert first match immediately