Skip to content

Instantly share code, notes, and snippets.

@josephfusco
Last active February 12, 2016 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josephfusco/bc9ddb04572594660daa to your computer and use it in GitHub Desktop.
Save josephfusco/bc9ddb04572594660daa to your computer and use it in GitHub Desktop.
resetwp(){
cwd=$(pwd)
cd ~/vagrant-local/www
vagrant ssh -c "cd /srv/www/wordpress-default/
rm -rf wp-content/uploads
wp reset database
wp rewrite structure '/%postname%/
cd $cwd'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment