Rename default strategy to `ps`

pull/54/head
Bruno Sutic 2014-09-21 15:12:35 +02:00
parent 8ebda79f68
commit 1b79eb2f63
No known key found for this signature in database
GPG Key ID: 66D96E4F2F7EF26C
4 changed files with 4 additions and 2 deletions

View File

@ -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.

View File

@ -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

View File

@ -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"