MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getTmuxInstallInstructions

Function getTmuxInstallInstructions

src/utils/worktree.ts:658–671  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

656}
657
658export 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
673export async function createTmuxSessionForWorktree(
674 sessionName: string,

Callers 1

runFunction · 0.50

Calls 1

getPlatformFunction · 0.85

Tested by

no test coverage detected