diff --git a/CHANGELOG.md b/CHANGELOG.md index 209de03..2247019 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ ### master - properly quote scripts - 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 - rename the plugin from `tmux-resurrect-auto` to `tmux-continuum` diff --git a/scripts/helpers.sh b/scripts/helpers.sh index 97c0e4f..b64fb36 100644 --- a/scripts/helpers.sh +++ b/scripts/helpers.sh @@ -23,8 +23,10 @@ current_tmux_server_pid() { } all_tmux_processes() { + # ignores `tmux source-file .tmux.conf` command used to reload tmux.conf ps -Ao "command pid" | - \grep "^tmux" + \grep "^tmux" | + \grep -v "^tmux source" } number_tmux_processes_except_current_server() {