GitShow/sindresorhus/default-shell
sindresorhus

default-shell

Get the user's default shell

by sindresorhus
Star on GitHubForknpm

JavaScript

41 stars7 forks4 contributorsQuiet · 9mo agoSince 2016v2.2.0MIT

Meet the team

See all 4 on GitHub →
sindresorhus
sindresorhus14 contributions
mquevill
mquevill1 contribution
Richienb
Richienb1 contribution
msipinski
msipinski1 contribution

Languages

View on GitHub →
JavaScript82.9%
TypeScript17.1%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
msipinski
CommonJS module system supportClosedIssue

Hi, I know that ECMAScript Modules are the future, but for now I have a problem using ESM packages in my Electron.js project. I think that having a "hybrid" package is better! If my understanding is correct, we can extract the code from to a new file with a CJS style and in leave only a ESM style wrapper: and .

msipinski · 4y ago
mquevill
Add function to detect current shellMergedPR

Switches from a default export to named exports. Fixes #4.

mquevill · 4y ago
albinekb
Export detect functionClosedIssue

We're using this module in hyper: https://github.com/zeit/hyper/blob/canary/app/session.js#L4 Since we require this module at startup, we won't see changes to the default shell, requiring a restart to use the new default shell after changing it. I have some ideas on how to fix this, but the best might be to export the detect function too, another way would be to purge the require cache in hyper, but that feels hacky. another way is to just copy this module code into hyper/lib. Thoughts?

albinekb · 4y ago
Structured data for AI agents

Repository: sindresorhus/default-shell. Description: Get the user's default shell Stars: 41, Forks: 7. Primary language: JavaScript. Languages: JavaScript (82.9%), TypeScript (17.1%). License: MIT. Latest release: v2.2.0 (4y ago). Open PRs: 0, open issues: 0. Last activity: 9mo ago. Community health: 85%. Top contributors: sindresorhus, mquevill, Richienb, msipinski.

·@ofershap

Replace github.com with gitshow.dev