Skip to content

Instantly share code, notes, and snippets.

@binaryseed
Created April 7, 2011 22:17
Show Gist options
  • Save binaryseed/908896 to your computer and use it in GitHub Desktop.
Save binaryseed/908896 to your computer and use it in GitHub Desktop.
Pow-ize the current directory
#
# zsh function to Pow-ize the current directory, with config files
#
# http://pow.cx/manual.html
power() {
[[ -a config.ru ]] || return
cd ~/.pow
ln -s $OLDPWD
cd $OLDPWD
echo "rvm --create use default@`basename $PWD`" > .rvmrc
echo "\n.powrc" > .gitignore
touch .powrc
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment