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
b020b248
Unverified
Commit
b020b248
authored
Nov 30, 2018
by
Bruno Sutic
Committed by
GitHub
Nov 30, 2018
Browse files
Merge pull request #220 from kevinkjt2000/fix-issue-95
fix #95 restore name of first window
parents
e5cbe54c
8f3f8d7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/restore.sh
View file @
b020b248
...
...
@@ -170,6 +170,7 @@ restore_pane() {
window_name
=
"
$(
remove_first_char
"
$window_name
"
)
"
pane_full_command
=
"
$(
remove_first_char
"
$pane_full_command
"
)
"
if
pane_exists
"
$session_name
"
"
$window_number
"
"
$pane_index
"
;
then
tmux rename-window
-t
"
$window_number
"
"
$window_name
"
if
is_restoring_from_scratch
;
then
# overwrite the pane
# happens only for the first pane if it's the only registered pane for the whole tmux server
...
...
@@ -182,6 +183,7 @@ restore_pane() {
register_existing_pane
"
$session_name
"
"
$window_number
"
"
$pane_index
"
fi
elif
window_exists
"
$session_name
"
"
$window_number
"
;
then
tmux rename-window
-t
"
$window_number
"
"
$window_name
"
new_pane
"
$session_name
"
"
$window_number
"
"
$window_name
"
"
$dir
"
"
$pane_index
"
elif
session_exists
"
$session_name
"
;
then
new_window
"
$session_name
"
"
$window_number
"
"
$window_name
"
"
$dir
"
"
$pane_index
"
...
...
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