2019-10-26 20:05:31 +03:00
|
|
|
# Launch tmux if logging in over ssh
|
|
|
|
if [[ -z "$TMUX" ]] && [ "$SSH_CONNECTION" != "" ]; then
|
2022-03-11 18:14:21 +02:00
|
|
|
tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux
|
2019-10-26 20:05:31 +03:00
|
|
|
fi
|
2019-11-06 08:36:20 +02:00
|
|
|
|
|
|
|
# share history between running zsh instances
|
|
|
|
setopt share_history
|
|
|
|
|
|
|
|
# ignore commands with leading space from history
|
|
|
|
setopt histignorespace
|