mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-06 15:20:23 +00:00
1b64ba84f1
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
11 lines
304 B
Bash
11 lines
304 B
Bash
# Launch tmux if logging in over ssh
|
|
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
|