Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Hubot .plist for running via launchctl on OSX
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<!-- LSEnvironment does not work for PATH. I don't know why.
<string>export PATH=/usr/local/bin:/usr/local/Cellar/ruby/2.1.0/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin; /Users/nheinric/workspace/hubot/</string>
Copy link

gb96 commented Dec 9, 2014

Thanks for sharing!
I suspect the /bin/sh and -c are redundant assuming file has global execute permission and begins with #!/bin/sh ... Also I think the export PATH=... is probably not required either. If you needed to modify default PATH you could put the export PATH statement inside

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment