mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 13:19:07 -07:00
Update darwin variables
This commit is contained in:
8
bin/darwin-env.sh
Executable file
8
bin/darwin-env.sh
Executable 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
|
||||||
16
darwin-env.plist
Normal file
16
darwin-env.plist
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>Label</key>
|
||||||
|
<string>com.user.loadvars</string>
|
||||||
|
<key>ProgramArguments</key>
|
||||||
|
<array>
|
||||||
|
<string>/bin/sh</string>
|
||||||
|
<string>-c</string>
|
||||||
|
<string>~/bin/darwin-env.sh || true</string>
|
||||||
|
</array>
|
||||||
|
<key>RunAtLoad</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
Reference in New Issue
Block a user