See Blog post
Ever see example shell commands like this and wish you could paste them in?
$ rails new myapp
$ cd myapp
$ bundle
Fear no more.
cd ~
mkdir bin
git clone git://gist.github.com/1019041.git ~/bin/magic-dollar
chmod +x ~/bin/magic-dollar/$
In your .bash_profile
add the following:
[[ -d $HOME/bin/magic-dollar ]] && export PATH=$PATH":$HOME/bin/magic-dollar"
@dwaite for $@
instead of $0 $1 ...