I find myself typing over and over the same commands in the CLI to accomodate my workflow with Git and Rails so I made a collection a few bash scripts. They are in no way groundbreaking (I'm not a bash coder, to start with) but they save me quite some time. For example, instead of typing:<p><pre><code> git add -A .
git commit -m "some comment"
git checkout master
git merge dev
git branch -d dev
git push origin master
</code></pre>
...I can just type:<p><pre><code> git_p
</code></pre>
The same goes with Rails apps. I start many new ones and after creating a new rvm gemset, installing Rails, overriding the Gemfile with some common gems, creating a Users and Permissions model, etc... for the 6'772 times, I made a script that lets you select few things and then generates the new app with:<p><pre><code> rails_create
</code></pre>
I added them (with a tutorial) to Github here: https://github.com/nicoschuele/nscripts. There are others too (to drop, migrate and seed a DB, to destroy an app, etc). Maybe some of you find them useful.