protected function getShellType() { if (!getenv('SHELL')) { throw new \RuntimeException('Could not read SHELL environment variable. Please specify your shell type using the --shell-type option.'); } return basename(getenv('SHELL')); }