fsquillace / junest

The lightweight Arch Linux based distro that runs, without root privileges, on top of any other Linux distro.
GNU General Public License v3.0
2.08k stars 110 forks source link

How do I detect if the current program is running inside junest? #353

Closed NightMachinery closed 2 months ago

NightMachinery commented 2 months ago

I like to add some custom behavior to emacs when it is run under junest. Is there a way to detect this?

fsquillace commented 2 months ago

If it is running within a junest session there should be a variable JUNEST_ENV set to 1. https://github.com/fsquillace/junest/blob/master/lib/core/namespace.sh#L110