diff --git a/scripts/restore.sh b/scripts/restore.sh index 174465d..1a5e3f9 100755 --- a/scripts/restore.sh +++ b/scripts/restore.sh @@ -340,7 +340,7 @@ restore_grouped_sessions() { } restore_active_and_alternate_windows() { - awk 'BEGIN { FS="\t"; OFS="\t" } /^window/ && $6 ~ /[*-]/ { print $2, $4, $3; }' $(last_resurrect_file) | + awk 'BEGIN { FS="\t"; OFS="\t" } /^window/ && $6 ~ /[*-]/ { print $2, $5, $3; }' $(last_resurrect_file) | sort -u | while IFS=$d read session_name active_window window_number; do tmux switch-client -t "${session_name}:${window_number}"