Commit f096644c authored by Josh Matthews's avatar Josh Matthews
Browse files

Checking if already in tmux before autostarting in tmux in tmux plugin.

parent 43c50f03
...@@ -54,7 +54,7 @@ function zsh_tmux_plugin_run() ...@@ -54,7 +54,7 @@ function zsh_tmux_plugin_run()
# Alias tmux to our wrapper function. # Alias tmux to our wrapper function.
alias tmux=zsh_tmux_plugin_start alias tmux=zsh_tmux_plugin_start
if [[ "$ZSH_TMUX_AUTOSTART" == "true" ]] if [[ ! -n "$TMUX" && "$ZSH_TMUX_AUTOSTART" == "true" ]]
then then
zsh_tmux_plugin_run zsh_tmux_plugin_run
fi fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment