(sessionName?: string)
| 34 | const name = sessionName ?? getSessionName(); |
| 35 | try { |
| 36 | // `=` forces an exact match; a bare -t prefix-matches sibling sessions. |
| 37 | execSync(`tmux has-session -t '=${name}'`, { stdio: 'ignore' }); |
| 38 | return true; |
| 39 | } catch { |
| 40 | return false; |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | function findOtherKiloDevSessions(): string[] { |
| 45 | const ownSession = getSessionName(); |
| 46 | try { |
| 47 | const output = execSync('tmux list-sessions -F "#{session_name}"', { |
no test coverage detected