mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Fix tmux autostart check
This commit is contained in:
parent
0ee43c9ed6
commit
015cf37164
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ if which tmux &> /dev/null
|
|||
alias tmux=_zsh_tmux_plugin_run
|
||||
|
||||
# Autostart if not already in tmux and enabled.
|
||||
if [[ ! -n "$TMUX" && "$ZSH_TMUX_AUTOSTART" == "true" && ! ( -n "$INSIDE_EMACS" || -n "$EMACS" || -n "$VIM" ) ]]
|
||||
if [[ -z "$TMUX" && "$ZSH_TMUX_AUTOSTART" == "true" && -z "$INSIDE_EMACS" && -z "$EMACS" && -z "$VIM" ]]
|
||||
then
|
||||
# Actually don't autostart if we already did and multiple autostarts are disabled.
|
||||
if [[ "$ZSH_TMUX_AUTOSTART_ONCE" == "false" || "$ZSH_TMUX_AUTOSTARTED" != "true" ]]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue