Search code examples
netbeansmacosstartuprsync

Run terminal command on startup of netbeans in mac osx


Hey, does anybody know of a good way to run a command in the terminal when you startup netbeans in mac osx? Either as an option in netbeans or as a feature of mac osx? I'd like automatically sync my local files with a remote folder on startup of netbeans, so I'd like to run an rsync command when netbeans starts up. Otherwise I forget and I wind up with conflicts.


Solution

  • Why not just rename the original "netbeans" in your path to something else, and write a sciprt named "netbeans", which first runs the desired command, and then runs the original netbeans executable?