mirror of
https://github.com/tmux-plugins/tmux-continuum.git
synced 2025-09-06 17:07:03 +00:00
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:
@ -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() {
|
||||
|
Reference in New Issue
Block a user