morganestes
5/25/2015 - 8:00 PM

Slurp WordPress Theme and Plugins together.

Slurp WordPress Theme and Plugins together.

  1. Clone the following repos (I keep mine in ~/Repositories)
  • git clone git@github.com:markjaquith/WordPress-Plugin-Directory-Slurper.git repo link
  • git clone git@github.com:aaronjorbin/WordPress-Theme-Directory-Slurper.git repo link
  1. Add the wp-slurp function to your bash functions file.
  2. Open a new terminal windown and run wp-slurp
  3. Profit!
#!/usr/bin/env bash
function wp-slurp() {
	local current_dir=`pwd`

	for thing in {'Theme','Plugin'}
	do
		local repo="$HOME/Repositories/WordPress-${thing}-Directory-Slurper"

		echo "=== Updating ${thing}s ==="
		cd $repo && ./update
	done

	cd $current_dir
}