@jjeem/detect-shell
v1.0.2
Published
detect shells available on the system
Downloads
6
Maintainers
Readme
Notice
This is a fork from LabhanshAgrawal/detect-shell.
detect-shell
Detect shells available on the system (based on vscode's implementation)
Install
$ npm install --save detect-shell
Usage
const {detectAvailableShells} = require('detect-shell');
detectAvailableShells().then((shells) => {
console.log(shells);
});
// output
[
{ label: 'bash', path: '/bin/bash' },
{ label: 'csh', path: '/bin/csh' },
{ label: 'dash', path: '/bin/dash' },
{ label: 'ksh', path: '/bin/ksh' },
{ label: 'sh', path: '/bin/sh' },
{ label: 'tcsh', path: '/bin/tcsh' },
{ label: 'zsh', path: '/bin/zsh' },
{ label: 'pwsh', path: '/usr/local/bin/pwsh' }
]