As a decades-long VIM user, I’ve resisted gui editors or IDEs since so many vi commands are now just muscle memory. As I’ve gotten more into Ruby, Rails, and Puppet, I’ve eventually given into the dark side and have started turning TextMate into more of a habit. Syntax highlighting for Puppet and integration with Git have become crucial for my daily activities, which is facilitated by a couple of useful open-source bundles. While setting up my new environment today at PagerDuty, I wrote this quick script to install these bundles, as well as the Chef bundle since there’s a bit of an existing Chef presence here.
mkdir -p /Library/Application\ Support/TextMate/Bundles cd /Library/Application\ Support/TextMate/Bundles git clone git://gitorious.org/git-tmbundle/mainline.git Git.tmbundle git clone http://git.gitorious.org/git-tmbundle/mainline.git Git.tmbundle git clone https://github.com/masterzen/puppet-textmate-bundle.git Puppet.tmbundle git clone https://github.com/drnic/Chef.tmbundle.git Chef.tmbundle osascript -e 'tell app "TextMate" to reload bundles'