detect-shells
Version:
Detect shells installed on a system
20 lines (19 loc) • 724 B
TypeScript
/// <reference types="node" />
import { ChildProcess } from 'child_process';
import { IFoundShell } from './found-shell';
export declare enum Shell {
Cmd = "Command Prompt",
PowerShell = "PowerShell",
PowerShellCore = "PowerShell Core",
Hyper = "Hyper",
GitBash = "Git Bash",
Cygwin = "Cygwin",
WSL = "WSL",
WindowTerminal = "Windows Terminal",
FluentTerminal = "Fluent Terminal",
Alacritty = "Alacritty"
}
export declare const Default = Shell.Cmd;
export declare function parse(label: string): Shell;
export declare function getAvailableShells(): Promise<ReadonlyArray<IFoundShell<Shell>>>;
export declare function launch(foundShell: IFoundShell<Shell>, path: string): ChildProcess;