mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
Checking if already in tmux before autostarting in tmux in tmux plugin.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user