Added zsh history sharing

Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
Marko Korhonen 2019-11-06 08:36:20 +02:00
parent 3ed2f08a2c
commit 665825734c

View file

@ -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