3 ms·
I think I’ll put Direnv on my todo list and consider not using Autoenv any more. I like the way it’s able to unroll the environment, though the equivalent is po
by no-s 5y ago
I think I’ll put Direnv on my todo list and consider not using Autoenv any more. I like the way it’s able to unroll the environment, though the equivalent is possible by e.g. starting a new login shell. Is it time to stop using Bash as my interactive shell? I didn’t even realize MacOS had gone all zsh/sh on me because I long ago installed an up-to-date Bash so as not to curse so much...I enjoy my Macs but I’m starting to get all container-loving, unikernel affectionate, functions-as-a-service-friendly, commodity-hardware grasping. And there’s the constant undercurrent of Nix envy my subconscious surfaces occasionally...
- zimbatm 5y agoI'm not sure if it's obvious but direnv also works with zsh. It's loading the .envrc with bash, then capturing the env diff, and reflecting that back to the host shell. direnv is still back-compat with macOS's bash 3.x, although the limitation so becoming increasingly frustrating. Bash 3.x is 10y+ old at this point and it would be nice to be able to use associative arrary finally.