From 1b79eb2f6335b642c2226fb224a5f7a71a9cf95b Mon Sep 17 00:00:00 2001 From: Bruno Sutic Date: Sun, 21 Sep 2014 15:12:35 +0200 Subject: [PATCH] Rename default strategy to `ps` --- CHANGELOG.md | 1 + save_command_strategies/{default.sh => ps.sh} | 0 scripts/save.sh | 4 ++-- scripts/variables.sh | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) rename save_command_strategies/{default.sh => ps.sh} (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6859606..9e59508 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ 'default' strategy. - save command strategy: 'pgrep'. It's here only if fallback is needed. - save command strategy: 'gdb' +- rename default strategy name to 'ps' ### v1.3.0, 2014-09-20 - remove dependency on `pgrep` command. Use `ps` for fetching process names. diff --git a/save_command_strategies/default.sh b/save_command_strategies/ps.sh similarity index 100% rename from save_command_strategies/default.sh rename to save_command_strategies/ps.sh diff --git a/scripts/save.sh b/scripts/save.sh index a1ac699..b8a7131 100755 --- a/scripts/save.sh +++ b/scripts/save.sh @@ -66,9 +66,9 @@ dump_panes_raw() { } _save_command_strategy_file() { - local save_command_strategy="$(get_tmux_option "$save_command_strategy_option" "default")" + local save_command_strategy="$(get_tmux_option "$save_command_strategy_option" "$default_save_command_strategy")" local strategy_file="$CURRENT_DIR/../save_command_strategies/${save_command_strategy}.sh" - local default_strategy_file="$CURRENT_DIR/../save_command_strategies/default.sh" + local default_strategy_file="$CURRENT_DIR/../save_command_strategies/${default_save_command_strategy}.sh" if [ -e "$strategy_file" ]; then # strategy file exists? echo "$strategy_file" else diff --git a/scripts/variables.sh b/scripts/variables.sh index 52322f1..8f451c4 100644 --- a/scripts/variables.sh +++ b/scripts/variables.sh @@ -25,3 +25,4 @@ restore_process_strategy_option="@resurrect-strategy-" inline_strategy_token="->" save_command_strategy_option="@resurrect-save-command-strategy" +default_save_command_strategy="ps"