emacs cocoa stuff, set-path launch agent, as_user function.

This commit is contained in:
2014-10-21 15:20:43 -07:00
parent 355d851507
commit 4d707d59e3
8 changed files with 48 additions and 32 deletions

View File

@@ -3,14 +3,14 @@
<plist version="1.0">
<dict>
<key>Label</key>
<string>set-path</string>
<string>com.example.hello</string>
<key>ProgramArguments</key>
<array>
<string>zsh</string>
<string>-c</string>
<string>'source ~/.zshrc; launchctl setenv PATH $PATH'</string>
<string>source ~/.zshrc && echo password | sudo -Sv && as_current_user /bin/launchctl setenv PATH $PATH</string>
</array>
<key>KeepAlive</key>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
</plist>