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> |