Created
February 25, 2018 18:11
-
-
Save anonymous/c4f39d4ebcd72f8a08c439f4c0dc6286 to your computer and use it in GitHub Desktop.
Quickly CD into working WP theme directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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