Bugfix: do not count tmux source-file as tmux process

Do not count `tmux source-file .tmux.conf` as a tmux process when checking if
other tmux server is running.

Previously, this caused interpolation command not to be inserted into
`status-right` because `tmux source-file` was falsely detected as another tmux
server.
This commit is contained in:
Bruno Sutic 2015-03-14 15:55:00 +01:00
parent f821d353ea
commit d6ac017d1d
No known key found for this signature in database
GPG Key ID: 66D96E4F2F7EF26C
2 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,10 @@
### master ### master
- properly quote scripts - properly quote scripts
- bugfix: "auto restore" feature does not work on tmux `1.9a` - bugfix: "auto restore" feature does not work on tmux `1.9a`
- bugfix: do not count `tmux source-file .tmux.conf` as a tmux process (when
checking if other tmux server is running). Previously, this caused
interpolation command not to be inserted into `status-right` because `tmux
source-file` was falsely detected as another tmux server.
### v3.0.0, 2015-02-20 ### v3.0.0, 2015-02-20
- rename the plugin from `tmux-resurrect-auto` to `tmux-continuum` - rename the plugin from `tmux-resurrect-auto` to `tmux-continuum`

View File

@ -23,8 +23,10 @@ current_tmux_server_pid() {
} }
all_tmux_processes() { all_tmux_processes() {
# ignores `tmux source-file .tmux.conf` command used to reload tmux.conf
ps -Ao "command pid" | ps -Ao "command pid" |
\grep "^tmux" \grep "^tmux" |
\grep -v "^tmux source"
} }
number_tmux_processes_except_current_server() { number_tmux_processes_except_current_server() {