Skip to content

Instantly share code, notes, and snippets.

@morganestes
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save morganestes/5499115cfd4b419edf74 to your computer and use it in GitHub Desktop.

Select an option

Save morganestes/5499115cfd4b419edf74 to your computer and use it in GitHub Desktop.
Slurp WordPress Theme and Plugins together.
  1. Clone the following repos (I keep mine in ~/Repositories)
  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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment