summaryrefslogtreecommitdiff
path: root/dotfiles-darwin
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles-darwin')
-rwxr-xr-xdotfiles-darwin/bin/env.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/dotfiles-darwin/bin/env.sh b/dotfiles-darwin/bin/env.sh
index 7a9d7e5..d291ef9 100755
--- a/dotfiles-darwin/bin/env.sh
+++ b/dotfiles-darwin/bin/env.sh
@@ -9,7 +9,6 @@ done
# make it work in Emacs only. Yep, it’s pretty bad.
local plist=~/Applications/Emacs.app/Contents/Info.plist
if [[ -f ${plist} ]]; then
- plutil -replace LSEnvironment -dictionary ${plist}
- plutil -insert LSEnvironment.PATH -string "${PATH}" ${plist}
+ plutil -replace LSEnvironment -json '{"PATH": "'${PATH}'"}' ${plist}
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -f ${plist:h:h}
fi