dotfiles/home/.config/zsh/05-misc.zsh

11 lines
307 B
Bash
Raw Normal View History

# 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
fi
# share history between running zsh instances
setopt share_history
# ignore commands with leading space from history
setopt histignorespace