Skip to content

Drush auto-completion and other Drupal related goodies

License

Notifications You must be signed in to change notification settings

yhaefliger/zsh-drupal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Drupal ZSH Plugin

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 and dsite to go to site directory.
  • drush function auto-completion.
  • common drush tasks aliases (cache/config).

Requirement

Installation

Manual

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

Antigen

Add this line in your .zshrc file before antigen apply call

antigen bundle yhaefliger/zsh-drupal

Aliases

Drush

  • dcr: drush cache:rebuild
  • dcc: drush cache:clear
  • dcex: drush config:export
  • dcim: drush config:import
  • dcget: drush config:get
  • dcset: drush config:set
  • dcedit: drush config:edit
  • dup: drush updatedb

Composer

Check Drupal outdated versions and update core as recommended in the documentation

  • dco: composer outdated "drupal/*"
  • dcu: composer update drupal/core --with-dependencies
  • dcur: composer update drupal/core "drupal/core-*" --with-all-dependencies

About

Drush auto-completion and other Drupal related goodies

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages