Tmux now auto starts on ssh connections

This commit is contained in:
Stefen Auris 2017-08-05 20:47:42 -04:00
parent c3c1ada923
commit 8e6d0287f1

View file

@ -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