Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yhaefliger/zsh-drupal
Drush auto-completion and other Drupal related goodies
https://github.com/yhaefliger/zsh-drupal
drupal drush oh-my-zsh zsh zsh-plugin
Last synced: about 1 month ago
JSON representation
Drush auto-completion and other Drupal related goodies
- Host: GitHub
- URL: https://github.com/yhaefliger/zsh-drupal
- Owner: yhaefliger
- License: mit
- Created: 2021-12-08T10:48:36.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-02-02T10:52:50.000Z (over 2 years ago)
- Last Synced: 2024-01-23T17:54:33.764Z (4 months ago)
- Topics: drupal, drush, oh-my-zsh, zsh, zsh-plugin
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-zsh-plugins - drupal - Adds aliases for common tasks and also tab-completion for `drush`. Inspired by [Artisan](https://github.com/jessarcher/zsh-artisan). (Plugins / ZSH on Windows)
- awesome-zsh-plugins - drupal - Adds aliases for common tasks and also tab-completion for `drush`. Inspired by [Artisan](https://github.com/jessarcher/zsh-artisan). (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - drupal - Adds aliases for common tasks and also tab-completion for `drush`. Inspired by <b><code> 605⭐</code></b> <b><code> 35🍴</code></b> [Artisan](https://github.com/jessarcher/zsh-artisan)). (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - drupal - Adds aliases for common tasks and also tab-completion for `drush`. Inspired by <b><code> 604⭐</code></b> <b><code> 35🍴</code></b> [Artisan](https://github.com/jessarcher/zsh-artisan)). (Plugins / ZSH on Windows)
README
# Drupal ZSH Plugin
Mainly inspired from [Artisan ZSH plugin](https://github.com/jessarcher/zsh-artisan) 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
* [zsh](https://www.zsh.org/)
* [oh-my-zsh](https://ohmyz.sh/)
* [drush](https://www.drush.org/)
* [drush-launcher](https://github.com/drush-ops/drush-launcher) or drush installed in your global $PATH with another method :)## 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](https://www.drupal.org/docs/updating-drupal/updating-drupal-core-via-composer)
* `dco`: composer outdated "drupal/*"
* `dcu`: composer update drupal/core --with-dependencies
* `dcur`: composer update drupal/core "drupal/core-*" --with-all-dependencies