eeaf9f89b0e8b10a02f16cb6cdd93779c28eb2ea

Author
Carlo Sala <carlosalag@protonmail.com>
Committer
GitHub <noreply@github.com>
Date

Message

fix(tmux): disable AUTOREFRESH by default (#13034)

Diff

 1diff --git a/plugins/tmux/README.md b/plugins/tmux/README.md
 2index 53607b8adfa1af8e0098e65232824338807bcca4..39c57f84679ce88ea1b5019e8c52c10c6235d10d 100644
 3--- a/plugins/tmux/README.md
 4+++ b/plugins/tmux/README.md
 5@@ -31,7 +31,7 @@ The plugin also supports the following:
 6 
 7 | Variable                            | Description                                                                                                                    |
 8 | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
 9-| `ZSH_TMUX_AUTOREFRESH`              | Automatically refresh global environments (default: `true`)                                                                    |
10+| `ZSH_TMUX_AUTOREFRESH`              | Automatically refresh global environments (default: `false`)                                                                   |
11 | `ZSH_TMUX_AUTOSTART`                | Automatically starts tmux (default: `false`)                                                                                   |
12 | `ZSH_TMUX_AUTOSTART_ONCE`           | Autostart only if tmux hasn't been started previously (default: `true`)                                                        |
13 | `ZSH_TMUX_AUTOCONNECT`              | Automatically connect to a previous session if it exits (default: `true`)                                                      |
14diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh
15index f6de9166ffd57a9f409d354088358456ee7a1b23..d2729ec09b3b3a70f25e36eb782a2c6b1ad5ec2c 100644
16--- a/plugins/tmux/tmux.plugin.zsh
17+++ b/plugins/tmux/tmux.plugin.zsh
18@@ -16,7 +16,7 @@ fi
19 # Automatically name the new session based on the basename of PWD
20 : ${ZSH_TMUX_AUTONAME_SESSION:=false}
21 # Automatically pick up tmux environments
22-: ${ZSH_TMUX_AUTOREFRESH:=true}
23+: ${ZSH_TMUX_AUTOREFRESH:=false}
24 # Set term to screen or screen-256color based on current terminal support
25 : ${ZSH_TMUX_DETACHED:=false}
26 # Set detached mode