actually rename windows when restoring

This commit is contained in:
Robert Malko 2017-10-30 08:40:56 -07:00 committed by GitHub
parent 9c7ec631d4
commit 365a2e78ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,6 +159,7 @@ new_pane() {
else
tmux split-window -t "${session_name}:${window_number}" -c "$dir"
fi
tmux rename-window -t "${session_name}:${window_number}" "$window_name"
# minimize window so more panes can fit
tmux resize-pane -t "${session_name}:${window_number}" -U "999"
}