Added zsh history sharing
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
parent
91e6a947cc
commit
1b64ba84f1
1 changed files with 6 additions and 0 deletions
|
@ -2,3 +2,9 @@
|
||||||
if [[ -z "$TMUX" ]] && [ "$SSH_CONNECTION" != "" ]; then
|
if [[ -z "$TMUX" ]] && [ "$SSH_CONNECTION" != "" ]; then
|
||||||
tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux
|
tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# share history between running zsh instances
|
||||||
|
setopt share_history
|
||||||
|
|
||||||
|
# ignore commands with leading space from history
|
||||||
|
setopt histignorespace
|
||||||
|
|
Loading…
Reference in a new issue