Nathan Roberts posted an insightful comment which inspired me to explore passing parameters to an alias.

We will create a function which deploys an Octopress site with custom commit messages.

pusho() { rake generate; git add-commit -m $*; git push heroku master }

This function should be defined in your .zshrc or .bashrc file.

pusho "Updated Post"

pusho now deploys our ocotopress site with a custom commit message.


Instructions for git add-commit

Collection of resources on getting started with Zsh

Open a new tab or restart your terminal for the function to take effect