tjkjrw
Last Updated: February 25, 2016
·
945
· dwradcliffe

Simple shell script to symlink pow sites

Just place this shell script in your path somewhere.

I put mine in ~/bin, which is in my path

#!/usr/bin/env zsh

if [ -z "$1" ]; then
  ln -s $(pwd) ~/.pow/${PWD##*/}
else
  ln -s $(pwd) ~/.pow/$1
fi

Then when you need to setup a new site in pow, just type pow my-site or to use the current directory name, just pow.