1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-08 00:10:41 +01:00

refactor(lando): add LANDO_ZSH_WRAPPED_COMMANDS setting and refactor

This commit is contained in:
Marc Cornellà
2023-10-19 20:35:01 +02:00
parent a8dee63ffe
commit d082d87580
2 changed files with 32 additions and 11 deletions

View File

@@ -1,16 +1,19 @@
# Settings
: ${LANDO_ZSH_SITES_DIRECTORY:="$HOME/Sites"}
: ${LANDO_ZSH_CONFIG_FILE:=.lando.yml}
: ${LANDO_ZSH_WRAPPED_COMMANDS:="
artisan
composer
drush
gulp
npm
php
wp
yarn
"}
# Enable multiple commands with lando.
function artisan \
composer \
drush \
gulp \
npm \
php \
wp \
yarn {
function ${=LANDO_ZSH_WRAPPED_COMMANDS} {
# If the lando task is available in `lando --help`, then it means:
#
# 1. `lando` is in a project with a `.lando.yml` file.