Skip to content

Instantly share code, notes, and snippets.

@chaance
Forked from anonymous/localwp
Created February 25, 2018 18:11
Show Gist options
  • Save chaance/9dd84244a489109feb524757d184c5b5 to your computer and use it in GitHub Desktop.
Save chaance/9dd84244a489109feb524757d184c5b5 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