Skip to content

Commit

Permalink
enable tilde expansion ( aka ~ ) into /home/ubuntu in saved session f…
Browse files Browse the repository at this point in the history
…iles's paths
  • Loading branch information
YordanGeorgiev authored and bruno- committed Jul 5, 2021
1 parent abbc4fb commit 716b958
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 716b958

Please sign in to comment.