Files
AR-Menu/AR Menu/Needle/MenuScene/node_modules/tabtab/lib/utils/systemShell.js
2025-11-30 08:35:03 +02:00

12 lines
353 B
JavaScript

/**
* Utility to figure out the shell used on the system.
*
* Sadly, we can't use `echo $0` in node, maybe with more work. So we rely on
* process.env.SHELL.
*
* TODO: More work on this, namely to detect Git bash on Windows (bash.exe)
*/
const systemShell = () => (process.env.SHELL || '').split('/').slice(-1)[0];
module.exports = systemShell;