()
| 60 | * mise installs to: ~/.local/share/mise/installs/<tool>/<version>/ |
| 61 | */ |
| 62 | export function detectMise(): boolean { |
| 63 | const execPath = process.execPath || process.argv[0] || '' |
| 64 | |
| 65 | // Check if the executable is within a mise installs directory |
| 66 | if (/[/\\]mise[/\\]installs[/\\]/i.test(execPath)) { |
| 67 | logForDebugging(`Detected mise installation: ${execPath}`) |
| 68 | return true |
| 69 | } |
| 70 | |
| 71 | return false |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * Detects if the currently running Claude instance was installed via asdf |
no test coverage detected