diff --git a/scripts/continuum_status.sh b/scripts/continuum_status.sh index 280cf00..98c0b7c 100755 --- a/scripts/continuum_status.sh +++ b/scripts/continuum_status.sh @@ -6,7 +6,7 @@ source "$CURRENT_DIR/helpers.sh" source "$CURRENT_DIR/variables.sh" print_status() { - local save_int="$(get_tmux_option "$auto_save_interval_option")" + local save_int="$(get_tmux_option "$auto_save_interval_option" "$auto_save_interval_default")" local status="" local style_wrap if [ $save_int -gt 0 ]; then diff --git a/scripts/helpers.sh b/scripts/helpers.sh index b64fb36..1f8a8b2 100644 --- a/scripts/helpers.sh +++ b/scripts/helpers.sh @@ -23,9 +23,11 @@ current_tmux_server_pid() { } all_tmux_processes() { + # search for "^tmux " cause there can be some other running scripts, + # whose name starts with "tmux" for eg "tmux-mem-cpu-load" # ignores `tmux source-file .tmux.conf` command used to reload tmux.conf ps -Ao "command pid" | - \grep "^tmux" | + \grep "^tmux " | \grep -v "^tmux source" }