diff options
author | Marc Cornellà <marc@mcornella.com> | 2023-10-19 20:35:01 +0200 |
---|---|---|
committer | Marc Cornellà <marc@mcornella.com> | 2023-10-19 20:38:45 +0200 |
commit | d082d87580f05cca524c546d54eb8009cf8bb10c (patch) | |
tree | 7e30e2b3f3eb2e21a0e95b61231c4c532d03fee0 /plugins/lando/lando.plugin.zsh | |
parent | a8dee63ffe8839d3bcf1066f8359fa43caccf3f2 (diff) | |
download | zsh-d082d87580f05cca524c546d54eb8009cf8bb10c.tar.gz zsh-d082d87580f05cca524c546d54eb8009cf8bb10c.tar.bz2 zsh-d082d87580f05cca524c546d54eb8009cf8bb10c.zip |
refactor(lando): add `LANDO_ZSH_WRAPPED_COMMANDS` setting and refactor
Diffstat (limited to 'plugins/lando/lando.plugin.zsh')
-rw-r--r-- | plugins/lando/lando.plugin.zsh | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/plugins/lando/lando.plugin.zsh b/plugins/lando/lando.plugin.zsh index b5fa80092..ee796d212 100644 --- a/plugins/lando/lando.plugin.zsh +++ b/plugins/lando/lando.plugin.zsh @@ -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. |