| 656 | } |
| 657 | |
| 658 | export function getTmuxInstallInstructions(): string { |
| 659 | const platform = getPlatform() |
| 660 | switch (platform) { |
| 661 | case 'macos': |
| 662 | return 'Install tmux with: brew install tmux' |
| 663 | case 'linux': |
| 664 | case 'wsl': |
| 665 | return 'Install tmux with: sudo apt install tmux (Debian/Ubuntu) or sudo dnf install tmux (Fedora/RHEL)' |
| 666 | case 'windows': |
| 667 | return 'tmux is not natively available on Windows. Consider using WSL or Cygwin.' |
| 668 | default: |
| 669 | return 'Install tmux using your system package manager.' |
| 670 | } |
| 671 | } |
| 672 | |
| 673 | export async function createTmuxSessionForWorktree( |
| 674 | sessionName: string, |