diff options
author | 2024-03-25 16:43:09 +0530 | |
---|---|---|
committer | 2024-03-25 16:43:09 +0530 | |
commit | a62114c91f2070c8c8453d117f3d81dc113e41ff (patch) | |
tree | f266e87af29a08c01f82bc32dd7d463d8ec4441a /zsh/oh-my-zsh/plugins/wp-cli | |
parent | af120ab348f2e1a5a39dec035ed9dcf84189a64e (diff) | |
download | dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.tar.gz dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.tar.bz2 dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.zip |
dotfile update
Diffstat (limited to 'zsh/oh-my-zsh/plugins/wp-cli')
-rw-r--r-- | zsh/oh-my-zsh/plugins/wp-cli/README.md | 109 | ||||
-rw-r--r-- | zsh/oh-my-zsh/plugins/wp-cli/wp-cli.plugin.zsh | 123 |
2 files changed, 0 insertions, 232 deletions
diff --git a/zsh/oh-my-zsh/plugins/wp-cli/README.md b/zsh/oh-my-zsh/plugins/wp-cli/README.md deleted file mode 100644 index c4993ab..0000000 --- a/zsh/oh-my-zsh/plugins/wp-cli/README.md +++ /dev/null @@ -1,109 +0,0 @@ -# WP-CLI - -The [WordPress CLI](https://wp-cli.org/) is a command-line tool for managing WordPress installations. You can update plugins, set up multisite installs and much more, without using a web browser. - -This plugin adds [tab completion](https://wp-cli.org/#tab-completions) for `wp-cli` as well as several aliases for commonly used commands. - -To use it, add `wp-cli` to the plugins array in your zshrc file: - -```zsh -plugins=(... wp-cli) -``` - -**Maintainer:** [joshmedeski](https://github.com/joshmedeski) - -## Aliases - -The entire list of `wp-cli` commands can be found here: https://developer.wordpress.org/cli/commands/ - -| Alias | Command | -|-----------|-----------------------------| -| **Core** | -| `wpcc` | `wp core config` | -| `wpcd` | `wp core download` | -| `wpci` | `wp core install` | -| `wpcii` | `wp core is-installed` | -| `wpcmc` | `wp core multisite-convert` | -| `wpcmi` | `wp core multisite-install` | -| `wpcu` | `wp core update` | -| `wpcudb` | `wp core update-db` | -| `wpcvc` | `wp core verify-checksums` | -| **Cron** | -| `wpcre` | `wp cron event` | -| `wpcrs` | `wp cron schedule` | -| `wpcrt` | `wp cron test` | -| **Database** | -| `wpdbe` | `wp db export` | -| `wpdbi` | `wp db import` | -| `wpdbcr` | `wp db create` | -| `wpdbs` | `wp db search` | -| `wpdbch` | `wp db check` | -| `wpdbr` | `wp db repair` | -| **Menu** | -| `wpmc` | `wp menu create` | -| `wpmd` | `wp menu delete` | -| `wpmi` | `wp menu item` | -| `wpml` | `wp menu list` | -| `wpmlo` | `wp menu location` | -| **Plugin** | -| `wppa` | `wp plugin activate` | -| `wppda` | `wp plugin deactivate` | -| `wppd` | `wp plugin delete` | -| `wppg` | `wp plugin get` | -| `wppi` | `wp plugin install` | -| `wppis` | `wp plugin is-installed` | -| `wppl` | `wp plugin list` | -| `wppp` | `wp plugin path` | -| `wpps` | `wp plugin search` | -| `wppst` | `wp plugin status` | -| `wppt` | `wp plugin toggle` | -| `wppun` | `wp plugin uninstall` | -| `wppu` | `wp plugin update` | -| **Post** | -| `wppoc` | `wp post create` | -| `wppod` | `wp post delete` | -| `wppoe` | `wp post edit` | -| `wppogen` | `wp post generate` | -| `wppog` | `wp post get` | -| `wppol` | `wp post list` | -| `wppom` | `wp post meta` | -| `wppou` | `wp post update` | -| `wppourl` | `wp post url` | -| **Sidebar** | -| `wpsbl` | `wp sidebar list` | -| **Theme** | -| `wpta` | `wp theme activate` | -| `wptd` | `wp theme delete` | -| `wptdis` | `wp theme disable` | -| `wpte` | `wp theme enable` | -| `wptg` | `wp theme get` | -| `wpti` | `wp theme install` | -| `wptis` | `wp theme is-installed` | -| `wptl` | `wp theme list` | -| `wptm` | `wp theme mod` | -| `wptp` | `wp theme path` | -| `wpts` | `wp theme search` | -| `wptst` | `wp theme status` | -| `wptu` | `wp theme update` | -| **User** | -| `wpuac` | `wp user add-cap` | -| `wpuar` | `wp user add-role` | -| `wpuc` | `wp user create` | -| `wpud` | `wp user delete` | -| `wpugen` | `wp user generate` | -| `wpug` | `wp user get` | -| `wpui` | `wp user import-csv` | -| `wpul` | `wp user list` | -| `wpulc` | `wp user list-caps` | -| `wpum` | `wp user meta` | -| `wpurc` | `wp user remove-cap` | -| `wpurr` | `wp user remove-role` | -| `wpusr` | `wp user set-role` | -| `wpuu` | `wp user update` | -| **Widget** | -| `wpwa` | `wp widget add` | -| `wpwda` | `wp widget deactivate` | -| `wpwd` | `wp widget delete` | -| `wpwl` | `wp widget list` | -| `wpwm` | `wp widget move` | -| `wpwu` | `wp widget update` | diff --git a/zsh/oh-my-zsh/plugins/wp-cli/wp-cli.plugin.zsh b/zsh/oh-my-zsh/plugins/wp-cli/wp-cli.plugin.zsh deleted file mode 100644 index 09bdf32..0000000 --- a/zsh/oh-my-zsh/plugins/wp-cli/wp-cli.plugin.zsh +++ /dev/null @@ -1,123 +0,0 @@ -# WP-CLI -# A command line interface for WordPress -# https://wp-cli.org/ - -# Core -alias wpcc='wp core config' -alias wpcd='wp core download' -alias wpci='wp core install' -alias wpcii='wp core is-installed' -alias wpcmc='wp core multisite-convert' -alias wpcmi='wp core multisite-install' -alias wpcu='wp core update' -alias wpcudb='wp core update-db' -alias wpcvc='wp core verify-checksums' - -# Cron -alias wpcre='wp cron event' -alias wpcrs='wp cron schedule' -alias wpcrt='wp cron test' - -# Db -alias wpdbe='wp db export' -alias wpdbi='wp db import' -alias wpdbcr='wp db create' -alias wpdbs='wp db search' -alias wpdbch='wp db check' -alias wpdbr='wp db repair' - -# Menu -alias wpmc='wp menu create' -alias wpmd='wp menu delete' -alias wpmi='wp menu item' -alias wpml='wp menu list' -alias wpmlo='wp menu location' - -# Plugin -alias wppa='wp plugin activate' -alias wppda='wp plugin deactivate' -alias wppd='wp plugin delete' -alias wppg='wp plugin get' -alias wppi='wp plugin install' -alias wppis='wp plugin is-installed' -alias wppl='wp plugin list' -alias wppp='wp plugin path' -alias wpps='wp plugin search' -alias wppst='wp plugin status' -alias wppt='wp plugin toggle' -alias wppun='wp plugin uninstall' -alias wppu='wp plugin update' - -# Post -alias wppoc='wp post create' -alias wppod='wp post delete' -alias wppoe='wp post edit' -alias wppogen='wp post generate' -alias wppog='wp post get' -alias wppol='wp post list' -alias wppom='wp post meta' -alias wppou='wp post update' -alias wppourl='wp post url' - -# Sidebar -alias wpsbl='wp sidebar list' - -# Theme -alias wpta='wp theme activate' -alias wptd='wp theme delete' -alias wptdis='wp theme disable' -alias wpte='wp theme enable' -alias wptg='wp theme get' -alias wpti='wp theme install' -alias wptis='wp theme is-installed' -alias wptl='wp theme list' -alias wptm='wp theme mod' -alias wptp='wp theme path' -alias wpts='wp theme search' -alias wptst='wp theme status' -alias wptu='wp theme update' - -# User -alias wpuac='wp user add-cap' -alias wpuar='wp user add-role' -alias wpuc='wp user create' -alias wpud='wp user delete' -alias wpugen='wp user generate' -alias wpug='wp user get' -alias wpui='wp user import-csv' -alias wpul='wp user list' -alias wpulc='wp user list-caps' -alias wpum='wp user meta' -alias wpurc='wp user remove-cap' -alias wpurr='wp user remove-role' -alias wpusr='wp user set-role' -alias wpuu='wp user update' - -# Widget -alias wpwa='wp widget add' -alias wpwda='wp widget deactivate' -alias wpwd='wp widget delete' -alias wpwl='wp widget list' -alias wpwm='wp widget move' -alias wpwu='wp widget update' - - -# Completion for wp -autoload -U +X bashcompinit && bashcompinit -_wp_complete() { - local cur=${COMP_WORDS[COMP_CWORD]} - - IFS=$'\n'; # want to preserve spaces at the end - local opts="$(wp cli completions --line="$COMP_LINE" --point="$COMP_POINT")" - - if [[ "$opts" =~ \<file\>\s* ]] - then - COMPREPLY=( $(compgen -f -- $cur) ) - elif [[ $opts = "" ]] - then - COMPREPLY=( $(compgen -f -- $cur) ) - else - COMPREPLY=( ${opts[*]} ) - fi -} -complete -o nospace -F _wp_complete wp |