Hacker News new | ask | show | jobs
by drdexebtjl 110 days ago
Use this wrapper instead:

   #!/bin/sh
   set -a
   . ./.env
   exec "$@"
1 comments

or just `exec $SHELL` to unload.
Sort of? It definitely does what's needed, but it also removes any additional environment variables that were set, unless they're in your shell initialisation files.

I'm not trying to persuade that these tools are essential or anything, just highlighting that there's a few small details some take care of that're fairly nice.