ZSH plugin for ddev.
antigen bundle voronkovich/ddev.plugin.zshzplug "voronkovich/ddev.plugin.zsh"git clone https://github.com/voronkovich/ddev.plugin.zsh ~/.oh-my-zsh/custom/plugins/ddevEdit .zshrc to enable the plugin:
plugins=(... ddev)Clone this repo and add this into your .zshrc:
source path/to/cloned/repo/ddev.plugin.zshThis plugin provides a convenient wrapper around ddev exec, making it easier to run commands within a DDEV environment.
# Runs: ddev exec bin/console
dev bin/console
# Runs: ddev exec cli/joomla.php
dev cli/joomla.phpdev <command> [args]- Runs a command inside the DDEV environment.devs- Alias fordev start, starts the DDEV project and launches the browser.devo- Alias fordev open, opens the project in the browser.devm- Alias fordev mails, opens the mail viewer.
dev start- Starts the DDEV environment and opens the project in the browser.dev status- Shows the status of the DDEV project.dev stop- Stops the DDEV environment.dev restart- Restarts the DDEV environment.dev open- Opens the project in the browser.dev mails- Opens the mail viewer.
ddev-install- Installs DDEV using Homebrew or the official installation script.ddev-upgrade- Upgrades DDEV via Homebrew or reinstalls it if not using Homebrew.
You can wrap specific tools to automatically execute inside the DDEV environment when in a DDEV project:
ddev-tools composer npm yarnNow, running composer, npm, or yarn within a DDEV project will automatically execute inside the container.
Copyright (c) Voronkovich Oleg. Distributed under the MIT.