Mainly inspired from Artisan ZSH plugin by Jess Archer
- 3 new functions:
droot
to go from anywhere within a drupal project to the root directory,dtheme
to go to the active theme directory anddsite
to go to site directory. drush
function auto-completion.- common
drush
tasks aliases (cache/config).
- zsh
- oh-my-zsh
- drush
- drush-launcher or drush installed in your global $PATH with another method :)
git clone https://github.com/yhaefliger/zsh-drupal.git ~/.oh-my-zsh/custom/plugins/drupal
Add drupal
in the plugin directive of your .zshrc
file
Add this line in your .zshrc
file before antigen apply
call
antigen bundle yhaefliger/zsh-drupal
dcr
: drush cache:rebuilddcc
: drush cache:cleardcex
: drush config:exportdcim
: drush config:importdcget
: drush config:getdcset
: drush config:setdcedit
: drush config:editdup
: drush updatedb
Check Drupal outdated versions and update core as recommended in the documentation
dco
: composer outdated "drupal/*"dcu
: composer update drupal/core --with-dependenciesdcur
: composer update drupal/core "drupal/core-*" --with-all-dependencies