Improve active/alternate window restoring

pull/26/head
Bruno Sutic 2014-08-26 20:29:55 +02:00
parent 8051fb9d36
commit 4d5c0a2a0d
No known key found for this signature in database
GPG Key ID: 66D96E4F2F7EF26C
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ restore_active_pane_for_each_window() {
}
restore_active_and_alternate_windows() {
awk 'BEGIN { FS="\t"; OFS="\t" } /^pane/ && $6 ~ /[*-]/ { print $2, $5, $3; }' $(last_session_path) |
awk 'BEGIN { FS="\t"; OFS="\t" } /^window/ && $5 ~ /[*-]/ { print $2, $4, $3; }' $(last_session_path) |
sort -u |
while IFS=$'\t' read session_name active_window window_number; do
tmux switch-client -t "${session_name}:${window_number}"