| 668 | } |
| 669 | |
| 670 | export function getTmuxInstallInstructions(): string { |
| 671 | const platform = getPlatform() |
| 672 | switch (platform) { |
| 673 | case 'macos': |
| 674 | return 'Install tmux with: brew install tmux' |
| 675 | case 'linux': |
| 676 | case 'wsl': |
| 677 | return 'Install tmux with: sudo apt install tmux (Debian/Ubuntu) or sudo dnf install tmux (Fedora/RHEL)' |
| 678 | case 'windows': |
| 679 | return 'tmux is not natively available on Windows. Consider using WSL or Cygwin.' |
| 680 | default: |
| 681 | return 'Install tmux using your system package manager.' |
| 682 | } |
| 683 | } |
| 684 | |
| 685 | export async function createTmuxSessionForWorktree( |
| 686 | sessionName: string, |