Export script paths so that 'tmux-resurrect-auto' plugin can use them

This commit is contained in:
Bruno Sutic 2015-02-12 12:48:06 +01:00
parent 708cd49d31
commit e1b01ee4f9
No known key found for this signature in database
GPG Key ID: 66D96E4F2F7EF26C
3 changed files with 10 additions and 0 deletions

View File

@ -2,6 +2,8 @@
### master
- bugfix: zoomed windows related regression
- export save and restore script paths so that 'tmux-resurrect-save' plugin can
use them
### v2.1.0, 2015-02-12
- if restore is started when there's only **1 pane in the whole tmux server**,

View File

@ -25,9 +25,15 @@ set_default_strategies() {
tmux set-option -g "${restore_process_strategy_option}irb" "default_strategy"
}
set_script_path_options() {
tmux set-option -g "$save_path_option" "$CURRENT_DIR/scripts/save.sh"
tmux set-option -g "$restore_path_option" "$CURRENT_DIR/scripts/restore.sh"
}
main() {
set_save_bindings
set_restore_bindings
set_default_strategies
set_script_path_options
}
main

View File

@ -1,9 +1,11 @@
# key bindings
default_save_key="C-s"
save_option="@resurrect-save"
save_path_option="@resurrect-save-script-path"
default_restore_key="C-r"
restore_option="@resurrect-restore"
restore_path_option="@resurrect-restore-script-path"
# default processes that are restored
default_proc_list_option="@resurrect-default-processes"