UNPKG

detect-shells

Version:

Detect shells installed on a system

23 lines (22 loc) 790 B
/// <reference types="node" /> import { ChildProcess } from 'child_process'; import { IFoundShell } from './found-shell'; export declare enum Shell { Gnome = "GNOME Terminal", Mate = "MATE Terminal", Tilix = "Tilix", Terminator = "Terminator", Urxvt = "URxvt", Konsole = "Konsole", Xterm = "XTerm", Terminology = "Terminology", Deepin = "Deepin Terminal", Elementary = "Elementary Terminal", XFCE = "XFCE Terminal", Alacritty = "Alacritty", Kitty = "Kitty" } export declare const Default = Shell.Gnome; 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;