bang!path

A Helping Hand for pow.cx Users

Here’s a useful script I whipped up for Pow.cx users. Drop the pow script in a convenient spot like ~/bin, name it pow, and give it a symlinky friend named unpow:

1
2
cd ~/bin
ln -s pow unpow

Now you’re all set for an even easier time working with Pow:

1
2
pow ~/code/my-awezome-rails-app
open http://my-awezome-rails-app.dev/

You can choose a custom site name:

1
2
pow ~/code/my-awezome-rails-app mara
open http://mara.dev/

Cleaning up old sites is as easy as:

1
unpow ~/code/my-awezome-rails-app

Full paths aren’t needed, the pow script will do the right thing:

1
2
cd ~/code/my-awezome-rails-app
pow .

I periodically update pow, so be sure to check pow -h for current options and features not listed above.

Enjoy!

Pow script on gist.github.com

Comments