osx-env-sync - include scalar-export-special parameters, such as PATH, in the sync

This commit is contained in:
Danielle McLean 2018-06-14 08:38:08 +10:00
parent af8f596ad3
commit 62871f6dda
Signed by: 00dani
GPG key ID: 8EB789DDF3ABD240

View file

@ -1,6 +1,6 @@
#!/bin/zsh
for name in ${(k)parameters}; do
[[ ${parameters[$name]} == scalar-export ]] || continue
[[ ${parameters[$name]} == scalar-export* ]] || continue
print $name=${(P)name}
launchctl setenv $name ${(P)name}
done