getShell function

String getShell()

Implementation

String getShell() {
  final shellPath = Platform.environment['SHELL'];
  if (shellPath == null) {
    return 'bash';
  }

  return basename(shellPath);
}