diff options
author | Josh Matthews <jmatth@nbcs.rutgers.edu> | 2013-02-26 22:03:22 -0500 |
---|---|---|
committer | Josh Matthews <jmatth@nbcs.rutgers.edu> | 2013-02-26 22:29:26 -0500 |
commit | f096644c751cb7fe566e82de531435a405d76be8 (patch) | |
tree | bdc014aa94d1e01d8fe7aeed75200aeef68abde5 /plugins/tmux | |
parent | 43c50f03e3c547ec51feef7ae3c99f734a66e6a6 (diff) | |
download | zsh-f096644c751cb7fe566e82de531435a405d76be8.tar.gz zsh-f096644c751cb7fe566e82de531435a405d76be8.tar.bz2 zsh-f096644c751cb7fe566e82de531435a405d76be8.zip |
Checking if already in tmux before autostarting in tmux in tmux plugin.
Diffstat (limited to 'plugins/tmux')
-rw-r--r-- | plugins/tmux/tmux.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh index 9a52e6376..8bdd92133 100644 --- a/plugins/tmux/tmux.plugin.zsh +++ b/plugins/tmux/tmux.plugin.zsh @@ -54,7 +54,7 @@ function zsh_tmux_plugin_run() # Alias tmux to our wrapper function. alias tmux=zsh_tmux_plugin_start -if [[ "$ZSH_TMUX_AUTOSTART" == "true" ]] +if [[ ! -n "$TMUX" && "$ZSH_TMUX_AUTOSTART" == "true" ]] then zsh_tmux_plugin_run fi |