Skip to content

Commit 92042b7

Browse files
committed
Replaces set_pane_title() with single tmux command.
1 parent 555a4e0 commit 92042b7

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

scripts/restore.sh

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,6 @@ pane_creation_command() {
123123
echo "cat '$(pane_contents_file "restore" "${1}:${2}.${3}")'; exec $(tmux_default_command)"
124124
}
125125

126-
set_pane_title() {
127-
local session_name="$1"
128-
local window_number="$2"
129-
local pane_index="$3"
130-
local pane_title="$4"
131-
local pane_id="${session_name}:${window_number}.${pane_index}"
132-
tmux select-pane -t "${pane_id}" -T "${pane_title}"
133-
}
134-
135126
new_window() {
136127
local session_name="$1"
137128
local window_number="$2"
@@ -209,7 +200,8 @@ restore_pane() {
209200
else
210201
new_session "$session_name" "$window_number" "$dir" "$pane_index"
211202
fi
212-
set_pane_title "$session_name" "$window_number" "$pane_index" "$pane_title"
203+
# set pane title
204+
tmux select-pane -t "$session_name:$window_number.$pane_index" -T "$pane_title"
213205
done < <(echo "$pane")
214206
}
215207

0 commit comments

Comments
 (0)