Hacker News new | ask | show | jobs
by tednaleid 5040 days ago
It's a lot easier than the original post says (and it's mentioned in the comments). Just rename your shell script to end in `.command` and you can have it execute via a double click (or launch it with launchbar/quicksilver). I have this in my .zshrc to automatically create a new .command file for the current directory so I can easily open it up in MacVim:

https://gist.github.com/3474341