Skip to content

Instantly share code, notes, and snippets.

@amitu
Created June 10, 2016 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amitu/0eeb98178479eeba7ca5ab7e1fdb9388 to your computer and use it in GitHub Desktop.
Save amitu/0eeb98178479eeba7ca5ab7e1fdb9388 to your computer and use it in GitHub Desktop.
waitforit launch agent plist for mac

Put this file in ~/Library/LaunchAgents, modify to update the location of gopath, and run.

$ launchctl load com.amitu.waitforit.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.amitu.waitforit</string>
<key>ProgramArguments</key>
<array>
<string>/Users/amitu/projects/gopath/bin/waitforit</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>UserName</key>
<string>amitu</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment