From 665825734ccd4dc9e80b42ceee9c11d54547702a Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Wed, 6 Nov 2019 08:36:20 +0200 Subject: [PATCH] Added zsh history sharing Signed-off-by: Marko Korhonen --- home/.config/zsh/05-misc.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home/.config/zsh/05-misc.zsh b/home/.config/zsh/05-misc.zsh index b9c52a4..10ddf01 100644 --- a/home/.config/zsh/05-misc.zsh +++ b/home/.config/zsh/05-misc.zsh @@ -2,3 +2,9 @@ if [[ -z "$TMUX" ]] && [ "$SSH_CONNECTION" != "" ]; then tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux fi + +# share history between running zsh instances +setopt share_history + +# ignore commands with leading space from history +setopt histignorespace