From 71fd3c8dd27c95896b264ab41b80af6369e63fcd Mon Sep 17 00:00:00 2001 From: Klas Mellbourn Date: Sat, 6 May 2017 00:32:40 +0200 Subject: [PATCH] remove terminal clearing since it collides with capture-pane-contents --- scripts/restore.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/restore.sh b/scripts/restore.sh index 50d4cbb..4f949c8 100755 --- a/scripts/restore.sh +++ b/scripts/restore.sh @@ -276,9 +276,7 @@ restore_shell_history() { if ! is_pane_registered_as_existing "$session_name" "$window_number" "$pane_index"; then if [ "$pane_command" == "bash" ]; then local pane_id="$session_name:$window_number.$pane_index" - # tmux send-keys has -R option that should reset the terminal. - # However, appending 'clear' to the command seems to work more reliably. - local read_command="history -r '$(resurrect_history_file "$pane_id")'; clear" + local read_command="history -r '$(resurrect_history_file "$pane_id")'" tmux send-keys -t "$pane_id" "$read_command" C-m fi fi