Make osx-env-sync a little more robust, it was failing with empty parameter values and newer Zsh versions
This commit is contained in:
parent
cb1fc9444b
commit
8036df0164
1 changed files with 2 additions and 2 deletions
|
@ -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}
|
||||
launchctl setenv $name "${(P)name}"
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue