1.0.2 • Published 3 months ago

@jjeem/detect-shell v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Notice

This is a fork from LabhanshAgrawal/detect-shell.

detect-shell

Detect shells available on the system (based on vscode's implementation)

npm unpkg

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' }
]
1.0.2

3 months ago