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
716b9581
Unverified
Commit
716b9581
authored
Jun 14, 2021
by
Yordan Georgiev
Committed by
Bruno Sutic
Jul 05, 2021
Browse files
enable tilde expansion ( aka ~ ) into /home/ubuntu in saved session files's paths
parent
abbc4fbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/restore.sh
View file @
716b9581
...
...
@@ -130,6 +130,7 @@ new_window() {
local dir
=
"
$4
"
local
pane_index
=
"
$5
"
local
pane_id
=
"
${
session_name
}
:
${
window_number
}
.
${
pane_index
}
"
dir
=
"
${
dir
/#\~/
$HOME
}
"
if
is_restoring_pane_contents
&&
pane_contents_file_exists
"
$pane_id
"
;
then
local
pane_creation_command
=
"
$(
pane_creation_command
"
$session_name
"
"
$window_number
"
"
$pane_index
"
)
"
tmux new-window
-d
-t
"
${
session_name
}
:
${
window_number
}
"
-n
"
$window_name
"
-c
"
$dir
"
"
$pane_creation_command
"
...
...
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