UNPKG

detect-shells

Version:

Detect shells installed on a system

19 lines (18 loc) 659 B
/// <reference types="node" /> import { ChildProcess } from 'child_process'; import { IFoundShell } from './found-shell'; export declare enum Shell { Terminal = "Terminal", Hyper = "Hyper", iTerm2 = "iTerm2", PowerShellCore = "PowerShell Core", Kitty = "Kitty", Alacritty = "Alacritty", Tabby = "Tabby", WezTerm = "WezTerm", Warp = "Warp" } export declare const Default = Shell.Terminal; 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;