detectMise function

bool detectMise()

Detects if the currently running instance was installed via mise. mise installs to: ~/.local/share/mise/installs/<tool>/<version>/

Implementation

bool detectMise() {
  final execPath = Platform.resolvedExecutable;
  return RegExp(
    r'[/\\]mise[/\\]installs[/\\]',
    caseSensitive: false,
  ).hasMatch(execPath);
}