Commit f5f490a
committed
fix(builder[here]): Use respawn-pane and set_environment instead of send_keys
Replace send_keys("export ...") and send_keys(window_shell) with tmux
primitives in --here mode:
- Environment: session.set_environment() + respawn-pane -e (inherited
by new panes, no POSIX shell assumption)
- Shell replacement: respawn-pane -k (kills current process, starts
fresh shell — no typing into foreground programs)
- Directory: respawn-pane -c (tmux primitive, no send_keys cd)
This eliminates all send_keys usage for infrastructure setup in --here
mode, matching teamocil's approach of using tmux primitives over
send_keys. Fixes the fish/nu shell incompatibility and the "types
into vim" failure mode.
Closes #10311 parent 886e63d commit f5f490a
2 files changed
Lines changed: 31 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
705 | 698 | | |
706 | 699 | | |
707 | 700 | | |
708 | 701 | | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
| 702 | + | |
| 703 | + | |
716 | 704 | | |
717 | | - | |
| 705 | + | |
718 | 706 | | |
719 | 707 | | |
720 | 708 | | |
721 | 709 | | |
722 | 710 | | |
723 | 711 | | |
724 | | - | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
725 | 720 | | |
726 | 721 | | |
727 | | - | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
728 | 733 | | |
729 | 734 | | |
730 | 735 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
608 | | - | |
| 608 | + | |
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
| |||
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
628 | 633 | | |
629 | 634 | | |
630 | 635 | | |
| |||
0 commit comments