mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2024-11-21 20:08:48 +00:00
Export script paths so that 'tmux-resurrect-auto' plugin can use them
This commit is contained in:
parent
708cd49d31
commit
e1b01ee4f9
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
### master
|
### master
|
||||||
- bugfix: zoomed windows related regression
|
- 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
|
### v2.1.0, 2015-02-12
|
||||||
- if restore is started when there's only **1 pane in the whole tmux server**,
|
- if restore is started when there's only **1 pane in the whole tmux server**,
|
||||||
|
@ -25,9 +25,15 @@ set_default_strategies() {
|
|||||||
tmux set-option -g "${restore_process_strategy_option}irb" "default_strategy"
|
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() {
|
main() {
|
||||||
set_save_bindings
|
set_save_bindings
|
||||||
set_restore_bindings
|
set_restore_bindings
|
||||||
set_default_strategies
|
set_default_strategies
|
||||||
|
set_script_path_options
|
||||||
}
|
}
|
||||||
main
|
main
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
# key bindings
|
# key bindings
|
||||||
default_save_key="C-s"
|
default_save_key="C-s"
|
||||||
save_option="@resurrect-save"
|
save_option="@resurrect-save"
|
||||||
|
save_path_option="@resurrect-save-script-path"
|
||||||
|
|
||||||
default_restore_key="C-r"
|
default_restore_key="C-r"
|
||||||
restore_option="@resurrect-restore"
|
restore_option="@resurrect-restore"
|
||||||
|
restore_path_option="@resurrect-restore-script-path"
|
||||||
|
|
||||||
# default processes that are restored
|
# default processes that are restored
|
||||||
default_proc_list_option="@resurrect-default-processes"
|
default_proc_list_option="@resurrect-default-processes"
|
||||||
|
Loading…
Reference in New Issue
Block a user