5
submitted 1 year ago by aard to c/emacs@lemmy.ml

I recently had to add a Mac to my zoo of hardware I'm trying to do productive work on - which prompted me to clean up and document my environment variable importer, which had grown to platform specific functions with lots of code duplication.

On both Windows and MacOS I have properly configured shells with all relevant variables - so it makes sense to query them, instead of duplicating the logic how they create that configuration into Emacs.

On Linux that'd have worked too, but I also have the relevant variables in the systemd user session, and querying that is a tiny bit faster than launching a shell.

you are viewing a single comment's thread
view the rest of the comments
[-] mitchmarq42xyz@emacs.ch 1 points 1 year ago

@aard sounds great! I'll check it out

this post was submitted on 09 Nov 2023
5 points (100.0% liked)

Emacs

2256 readers
1 users here now

Our infinitely powerful editor.

founded 5 years ago
MODERATORS