@@ -300,7 +300,7 @@ restore_window_properties() {
300
300
}
301
301
302
302
restore_shell_history () {
303
- awk ' BEGIN { FS="\t"; OFS="\t" } /^pane/ { print $2, $3, $7 , $10 ; }' $( last_resurrect_file) |
303
+ awk ' BEGIN { FS="\t"; OFS="\t" } /^pane/ { print $2, $3, $6 , $9 ; }' $( last_resurrect_file) |
304
304
while IFS=$d read session_name window_number pane_index pane_command; do
305
305
if ! is_pane_registered_as_existing " $session_name " " $window_number " " $pane_index " ; then
306
306
local pane_id=" $session_name :$window_number .$pane_index "
@@ -321,7 +321,7 @@ restore_shell_history() {
321
321
restore_all_pane_processes () {
322
322
if restore_pane_processes_enabled; then
323
323
local pane_full_command
324
- awk ' BEGIN { FS="\t"; OFS="\t" } /^pane/ && $11 !~ "^:$" { print $2, $3, $7 , $8 , $11 ; }' $( last_resurrect_file) |
324
+ awk ' BEGIN { FS="\t"; OFS="\t" } /^pane/ && $10 !~ "^:$" { print $2, $3, $6 , $7 , $10 ; }' $( last_resurrect_file) |
325
325
while IFS=$d read -r session_name window_number pane_index dir pane_full_command; do
326
326
dir=" $( remove_first_char " $dir " ) "
327
327
pane_full_command=" $( remove_first_char " $pane_full_command " ) "
@@ -331,15 +331,15 @@ restore_all_pane_processes() {
331
331
}
332
332
333
333
restore_active_pane_for_each_window () {
334
- awk ' BEGIN { FS="\t"; OFS="\t" } /^pane/ && $9 == 1 { print $2, $3, $7 ; }' $( last_resurrect_file) |
334
+ awk ' BEGIN { FS="\t"; OFS="\t" } /^pane/ && $8 == 1 { print $2, $3, $6 ; }' $( last_resurrect_file) |
335
335
while IFS=$d read session_name window_number active_pane; do
336
336
tmux switch-client -t " ${session_name} :${window_number} "
337
337
tmux select-pane -t " $active_pane "
338
338
done
339
339
}
340
340
341
341
restore_zoomed_windows () {
342
- awk ' BEGIN { FS="\t"; OFS="\t" } /^pane/ && $6 ~ /Z/ && $9 == 1 { print $2, $3; }' $( last_resurrect_file) |
342
+ awk ' BEGIN { FS="\t"; OFS="\t" } /^pane/ && $5 ~ /Z/ && $8 == 1 { print $2, $3; }' $( last_resurrect_file) |
343
343
while IFS=$d read session_name window_number; do
344
344
tmux resize-pane -t " ${session_name} :${window_number} " -Z
345
345
done
0 commit comments