mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
Checking if already in tmux before autostarting in tmux in tmux plugin.
This commit is contained in:
parent
43c50f03e3
commit
f096644c75
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue