In this screencast, we'll use Alfred to write an extension that assists us when creating new projects. As you'll find, Alfred makes the process of executing predefined shell scripts a cinch.
Final Bash Script
# Create our new project directory cd ~/Desktop && mkdir {query} && cd {query} # Begin by copying our BB template to the new folder cp -R ~/Templates/Backbone/ . # Pull in Backbone curl http://backbonejs.org/backbone-min.js > assets/js/libs/backbone.js # Pull in Underscore curl http://underscorejs.org/underscore-min.js > assets/js/libs/underscore.js # Pull in jQuery curl http://code.jquery.com/jquery.js > assets/js/libs/jquery.js # Open our new project in Sublime Text /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl .
Comments