Create a gist now

Instantly share code, notes, and snippets.

@drnic /$
Created Jun 10, 2011

What would you like to do?
never fear $ in tutorials again
#!/usr/bin/env bash

Never fear tutorials again

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:// ~/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 ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment