X-Git-Url: https://src.twobees.de/?a=blobdiff_plain;f=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Flando%2Flando.plugin.zsh;fp=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Flando%2Flando.plugin.zsh;h=0000000000000000000000000000000000000000;hb=1a8e170bbe5c6641a26ab1ce2e6ce6c5c1faa4cd;hp=af53e7e5a9f417773b6ea907e1b9f4e6462b644a;hpb=475ba35502579302593f4735c853c49ef1845dcb;p=dotfiles.git diff --git a/stow/oh-my-zsh/.oh-my-zsh/plugins/lando/lando.plugin.zsh b/stow/oh-my-zsh/.oh-my-zsh/plugins/lando/lando.plugin.zsh deleted file mode 100644 index af53e7e..0000000 --- a/stow/oh-my-zsh/.oh-my-zsh/plugins/lando/lando.plugin.zsh +++ /dev/null @@ -1,41 +0,0 @@ -# Settings -: ${LANDO_ZSH_SITES_DIRECTORY:="$HOME/Sites"} -: ${LANDO_ZSH_CONFIG_FILE:=.lando.yml} - -# Enable multiple commands with lando. -function artisan \ - composer \ - drush \ - gulp \ - npm \ - php \ - wp \ - yarn { - if checkForLandoFile; then - lando "$0" "$@" - else - command "$0" "$@" - fi -} - -# Check for the file in the current and parent directories. -checkForLandoFile() { - # Only bother checking for lando within the Sites directory. - if [[ "$PWD/" != "$LANDO_ZSH_SITES_DIRECTORY"/* ]]; then - # Not within $LANDO_ZSH_SITES_DIRECTORY - return 1 - fi - - local curr_dir="$PWD" - # Checking for file: $LANDO_ZSH_CONFIG_FILE within $LANDO_ZSH_SITES_DIRECTORY... - while [[ "$curr_dir" != "$LANDO_ZSH_SITES_DIRECTORY" ]]; do - if [[ -f "$curr_dir/$LANDO_ZSH_CONFIG_FILE" ]]; then - return 0 - fi - curr_dir="${curr_dir:h}" - done - - # Could not find $LANDO_ZSH_CONFIG_FILE in the current directory - # or in any of its parents up to $LANDO_ZSH_SITES_DIRECTORY. - return 1 -} \ No newline at end of file