defaultShell property

String get defaultShell

Get the shell for the current platform.

Implementation

String get defaultShell {
  if (platform == NeomagePlatform.windows) {
    return _environment['COMSPEC'] ?? 'cmd.exe';
  }
  return _environment['SHELL'] ?? '/bin/sh';
}