Flag gate the bash history restore feature

This commit is contained in:
Bruno Sutic
2014-10-17 22:33:29 +02:00
parent 8328de41d8
commit 8684d4592b
4 changed files with 13 additions and 2 deletions

View File

@ -211,7 +211,9 @@ main() {
start_spinner "Restoring..." "Tmux restore complete!"
restore_all_panes
restore_pane_layout_for_each_window >/dev/null 2>&1
restore_shell_history
if save_bash_history_option_on; then
restore_shell_history
fi
restore_all_pane_processes
# below functions restore exact cursor positions
restore_active_pane_for_each_window