sarugaku / shellingham

Tool to Detect Surrounding Shell
ISC License
221 stars 33 forks source link

Tidied-up detection for shell run via interpreter #28

Closed uranusjr closed 4 years ago

uranusjr commented 4 years ago

Fix #26, close #27.

Granitosaurus commented 4 years ago

Tested this and it works great!

$ ps -ww -o "pid=" -o "ppid=" -o "args=" 
 607948    1624 python3 -u /usr/bin/xonsh
$ python -c "import shellingham;print(shellingham.detect_shell())"
('xonsh', '/usr/bin/xonsh')
ofek commented 2 years ago

Does this work on Windows?