Skip to content

Commit d6ac017

Browse files
author
Bruno Sutic
committed
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.
1 parent f821d35 commit d6ac017

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
### master
44
- properly quote scripts
55
- bugfix: "auto restore" feature does not work on tmux `1.9a`
6+
- bugfix: do not count `tmux source-file .tmux.conf` as a tmux process (when
7+
checking if other tmux server is running). Previously, this caused
8+
interpolation command not to be inserted into `status-right` because `tmux
9+
source-file` was falsely detected as another tmux server.
610

711
### v3.0.0, 2015-02-20
812
- rename the plugin from `tmux-resurrect-auto` to `tmux-continuum`

scripts/helpers.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ current_tmux_server_pid() {
2323
}
2424

2525
all_tmux_processes() {
26+
# ignores `tmux source-file .tmux.conf` command used to reload tmux.conf
2627
ps -Ao "command pid" |
27-
\grep "^tmux"
28+
\grep "^tmux" |
29+
\grep -v "^tmux source"
2830
}
2931

3032
number_tmux_processes_except_current_server() {

0 commit comments

Comments
 (0)