Created — forked from drnic/$

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

never fear $ in tutorials again

View $
Raw
1 2 3
#!/usr/bin/env bash
 
$@
View $

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://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"

Thanks

@dwaite for $@ instead of $0 $1 ...

View $
$ rails new myapp
$ cd myapp
$ bundle
View $
1 2 3 4
cd ~
mkdir bin
git clone git://gist.github.com/1019041.git ~/bin/magic-dollar
chmod +x ~/bin/magic-dollar/$
View $
1
[[ -d $HOME/bin/magic-dollar ]] && export PATH=$PATH":$HOME/bin/magic-dollar"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.