MCPcopy Create free account
hub / github.com/Noumena-Network/code / getTmuxInstallInstructions

Function getTmuxInstallInstructions

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

Source from the content-addressed store, hash-verified

668}
669
670export 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
685export async function createTmuxSessionForWorktree(
686 sessionName: string,

Callers 1

runFunction · 0.50

Calls 1

getPlatformFunction · 0.85

Tested by

no test coverage detected