How can I find the user's shell (bash, zsh etc) where the current Node.js process is running?
Is it possible to find it without running a child process (like this, for example)?
ps -p $$
How can I find the user's shell (bash, zsh etc) where the current Node.js process is running?
Is it possible to find it without running a child process (like this, for example)?
ps -p $$
 
    
    process.env.SHELL should provide you with the path to the user's shell.
