3 ms·
self plug: http://direnv.net/ http://direnv.net/ does basically the same but without having to start new sub-shells. Just `cd` into a folder, if it has an .envr
by zimbatm 11y ago
self plug: http://direnv.net/ http://direnv.net/ does basically the same but without having to start new sub-shells. Just `cd` into a folder, if it has an .envrc file it's loaded. If you `cd` out of the folder all the changed environment variables are restored.
- nitrogen 11y agoDoes it have a trust model to prevent loading a .envrc from unknown origin?
- zimbatm 11y agoYes, the file path+content checksum is verified against a whitelist before execution. Typing `direnv allow [PATH]` adds it to the whitelist.
- jobeirne 11y agoVery cool project -- definitely recommend anyone interested in desk checks this out. From what I can tell, though, desk's design allows for slightly different uses: namely (because desk consolidates configuration into one directory), desk configuration is more easily shareable across computers. In order to recreate your direnv setup on another machine, you'd have to go and symlink all your direnv files manually (unless they're somehow embedded in the repos or folders you're working in). Direnv doesn't (AFAICT) attempt to surface documentation for the shell files it executes, whereas a lot of desk's value is in displaying a quick reference for common tasks within a workspace.