Update darwin variables

This commit is contained in:
David Tomaschik
2025-09-25 05:11:22 -07:00
parent e270bac5f2
commit 375ff434f2
2 changed files with 24 additions and 0 deletions

8
bin/darwin-env.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
env > ${TMPDIR}/env-pre
. ${HOME}/.shenv
env > ${TMPDIR}/env-post
for VAR in $(env | cut -d'=' -f1) ; do
/bin/launchctl setenv "${VAR}" "$(eval echo \$${VAR})"
done