Skip to content
Get the user's default shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.travis.yml
index.js
license
package.json
readme.md
test.js

readme.md

default-shell Build Status

Get the user's default shell

Install

$ npm install --save default-shell

Usage

const defaultShell = require('default-shell');

// macOS
console.log(defaultShell);
//=> '/bin/bash'

// Windows
console.log(defaultShell);
//=> 'C:\\WINDOWS\\system32\\cmd.exe'

License

MIT © Sindre Sorhus

You can’t perform that action at this time.