Tmux now auto starts on ssh connections
This commit is contained in:
parent
c3c1ada923
commit
8e6d0287f1
1 changed files with 5 additions and 0 deletions
|
@ -15,7 +15,12 @@ if which tmux &> /dev/null
|
||||||
# Configuration variables
|
# Configuration variables
|
||||||
#
|
#
|
||||||
# Automatically start tmux
|
# 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
|
[[ -n "$ZSH_TMUX_AUTOSTART" ]] || ZSH_TMUX_AUTOSTART=false
|
||||||
|
fi
|
||||||
# Only autostart once. If set to false, tmux will attempt to
|
# Only autostart once. If set to false, tmux will attempt to
|
||||||
# autostart every time your zsh configs are reloaded.
|
# autostart every time your zsh configs are reloaded.
|
||||||
[[ -n "$ZSH_TMUX_AUTOSTART_ONCE" ]] || ZSH_TMUX_AUTOSTART_ONCE=true
|
[[ -n "$ZSH_TMUX_AUTOSTART_ONCE" ]] || ZSH_TMUX_AUTOSTART_ONCE=true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue