272
Which one???
(programming.dev)
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
zshenv
’s selling point isn’t necessarily that your typical functions are available across scripts (though that can be neat, too – I sourcealiasrc
as well as anutils
script file in my shell config) – it’s that it’s there for non-interactive shells too, whereaszprofile
is only applied for login shells (andzshrc
only for interactive ones).So for example, I could open a command in my editor of choice (Helix’s
:sh
for me), and if I define stuff using thezshenv
, all of my aliases etc. are right there. I just have to avoid naming conflicts for script function names if it’s the default shell, but that’s pretty easily done.