Skip to content

Instantly share code, notes, and snippets.

@ahmadawais
Last active January 18, 2016 14:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmadawais/261edfb87812f3cdfc1f to your computer and use it in GitHub Desktop.
Save ahmadawais/261edfb87812f3cdfc1f to your computer and use it in GitHub Desktop.
ZSH: DesktopServer ZSH Setup
# WP DesktopServer Setup ready
# ---Updates the Core and 2015 theme
# ---Deletes 2013, 2014 and Aksimet
# Usage
# 1. First argument is the url E.g. aa.dev
# 2. Second argument is the Site Title E.g. AA
# Example:
# $ wpdsready local.dev SiteName
# ZSH, WPCLI should be installed.
function wpdsready() {
echo "${whitef}———————————————————${reset}"
echo "${whiteb} ${blackf}WP: Core Installing...${reset}"
wp core install --url=$1 --title=$2 --admin_user=root --admin_password=root --admin_email=name@gmail.com
echo "${whiteb} ${blackf}WP: Core Updating...${reset}"
wp core update ;
echo "${whiteb} ${blackf}WP: twentyfifteen Update...${reset}"
wp theme update twentyfifteen;
echo "${redb} ${blackf}WP: Removing twentythirteen...${reset}"
wp theme delete twentythirteen ;
echo "${redb} ${blackf}WP: Removing twentyfourteen...${reset}"
wp theme delete twentyfourteen ;
echo "${redb} ${blackf}WP: Removing akismet...${reset}"
wp plugin delete akismet ;
echo "${redb} ${blackf}WP: Removing Hello Dolly...${reset}"
wp plugin delete hello ;
echo "${greenb} ${blackf}5. WP: DS Setup Ready. DONE!${reset}"
echo "${whitef}———————————————————${reset}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment