Added drush compatibility
This commit is contained in:
parent
306e3e7ea0
commit
3ec3e7ca6f
47
plugins/drush/drush.plugin.zsh
Normal file
47
plugins/drush/drush.plugin.zsh
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
# Drush support.
|
||||||
|
|
||||||
|
function dren() {
|
||||||
|
drush en $@ -y
|
||||||
|
}
|
||||||
|
|
||||||
|
function dris() {
|
||||||
|
drush pm-disable $@ -y
|
||||||
|
}
|
||||||
|
|
||||||
|
function drpu() {
|
||||||
|
drush pm-uninstall $@ -y
|
||||||
|
}
|
||||||
|
|
||||||
|
function drf() {
|
||||||
|
if [[ $1 == "" ]] then
|
||||||
|
drush core-config
|
||||||
|
else
|
||||||
|
drush core-config --choice=$1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function drfi() {
|
||||||
|
if [[ $1 == 'fields' ]]; then
|
||||||
|
drush field-info fields
|
||||||
|
elif [[ $1 == 'types' ]]; then
|
||||||
|
else
|
||||||
|
drush field-info
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Aliases, sorted alphabetically.
|
||||||
|
alias drcb="drush cc block"
|
||||||
|
alias drca="drush cc all"
|
||||||
|
alias drcg="drush cc registry"
|
||||||
|
alias drcj="drush cc css-js"
|
||||||
|
alias drcm="drush cc menu"
|
||||||
|
alias drcml="drush cc module-list"
|
||||||
|
alias drcr="drush core-cron"
|
||||||
|
alias drct="drush cc theme-registry"
|
||||||
|
alias drcv="drush cc views"
|
||||||
|
alias drpm="drush pm-list --type=module"
|
||||||
|
alias drst="drush core-status"
|
||||||
|
alias drup="drush updatedb"
|
||||||
|
alias drups="drush updatedb-status"
|
||||||
|
alias drv="drush version"
|
||||||
|
alias drif="drush image-flush --all"
|
Loading…
Reference in New Issue
Block a user