Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christian Salzmann-Jaeckel
tmux-resurrect
Commits
71fd3c8d
Commit
71fd3c8d
authored
May 06, 2017
by
Klas Mellbourn
Browse files
remove terminal clearing since it collides with capture-pane-contents
parent
b8cc90a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/restore.sh
View file @
71fd3c8d
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment