From 8e6d0287f1fd7d91d2f352a33da76201c4d5c1c8 Mon Sep 17 00:00:00 2001 From: steveokard Date: Sat, 5 Aug 2017 20:47:42 -0400 Subject: [PATCH] Tmux now auto starts on ssh connections --- .oh-my-zsh/plugins/tmux/tmux.plugin.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.oh-my-zsh/plugins/tmux/tmux.plugin.zsh b/.oh-my-zsh/plugins/tmux/tmux.plugin.zsh index fb514a4..da1fc7f 100644 --- a/.oh-my-zsh/plugins/tmux/tmux.plugin.zsh +++ b/.oh-my-zsh/plugins/tmux/tmux.plugin.zsh @@ -15,7 +15,12 @@ if which tmux &> /dev/null # Configuration variables # # Automatically start tmux +if [[ -n "$SSH_CLIENT" ]] +then + [[ -n "$ZSH_TMUX_AUTOSTART" ]] || ZSH_TMUX_AUTOSTART=true +else [[ -n "$ZSH_TMUX_AUTOSTART" ]] || ZSH_TMUX_AUTOSTART=false +fi # Only autostart once. If set to false, tmux will attempt to # autostart every time your zsh configs are reloaded. [[ -n "$ZSH_TMUX_AUTOSTART_ONCE" ]] || ZSH_TMUX_AUTOSTART_ONCE=true