Skip to content

Instantly share code, notes, and snippets.

Created February 25, 2018 18:11
Show Gist options
  • Save anonymous/c4f39d4ebcd72f8a08c439f4c0dc6286 to your computer and use it in GitHub Desktop.
Save anonymous/c4f39d4ebcd72f8a08c439f4c0dc6286 to your computer and use it in GitHub Desktop.
Quickly CD into working WP theme directory
## Add to your bash or zsh profile
## Modify path to match where you keep your local WP installs
## Your install and theme names should match!
function localwp() {
cd ~/Desktop/local/"$@"/app/public/wp-content/themes/"$@"
}
## To use, type `localwp themename` (replace themename obvi)
## Now you’re in your theme directory! Yay!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment