mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2024-11-22 04:18:48 +00:00
Rename default strategy to ps
This commit is contained in:
parent
8ebda79f68
commit
1b79eb2f63
@ -5,6 +5,7 @@
|
|||||||
'default' strategy.
|
'default' strategy.
|
||||||
- save command strategy: 'pgrep'. It's here only if fallback is needed.
|
- save command strategy: 'pgrep'. It's here only if fallback is needed.
|
||||||
- save command strategy: 'gdb'
|
- save command strategy: 'gdb'
|
||||||
|
- rename default strategy name to 'ps'
|
||||||
|
|
||||||
### v1.3.0, 2014-09-20
|
### v1.3.0, 2014-09-20
|
||||||
- remove dependency on `pgrep` command. Use `ps` for fetching process names.
|
- remove dependency on `pgrep` command. Use `ps` for fetching process names.
|
||||||
|
@ -66,9 +66,9 @@ dump_panes_raw() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_save_command_strategy_file() {
|
_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 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?
|
if [ -e "$strategy_file" ]; then # strategy file exists?
|
||||||
echo "$strategy_file"
|
echo "$strategy_file"
|
||||||
else
|
else
|
||||||
|
@ -25,3 +25,4 @@ restore_process_strategy_option="@resurrect-strategy-"
|
|||||||
inline_strategy_token="->"
|
inline_strategy_token="->"
|
||||||
|
|
||||||
save_command_strategy_option="@resurrect-save-command-strategy"
|
save_command_strategy_option="@resurrect-save-command-strategy"
|
||||||
|
default_save_command_strategy="ps"
|
||||||
|
Loading…
Reference in New Issue
Block a user