X-Git-Url: https://src.twobees.de/?a=blobdiff_plain;f=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fbower%2F_bower;fp=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fbower%2F_bower;h=0000000000000000000000000000000000000000;hb=1a8e170bbe5c6641a26ab1ce2e6ce6c5c1faa4cd;hp=ae0ca4a4eb68adf3b3fa8ab198204ef45936d0fa;hpb=475ba35502579302593f4735c853c49ef1845dcb;p=dotfiles.git diff --git a/stow/oh-my-zsh/.oh-my-zsh/plugins/bower/_bower b/stow/oh-my-zsh/.oh-my-zsh/plugins/bower/_bower deleted file mode 100644 index ae0ca4a..0000000 --- a/stow/oh-my-zsh/.oh-my-zsh/plugins/bower/_bower +++ /dev/null @@ -1,58 +0,0 @@ - - -# Credits to npm's awesome completion utility. -# -# Bower completion script, based on npm completion script. - -###-begin-bower-completion-### -# -# Installation: bower completion >> ~/.bashrc (or ~/.zshrc) -# Or, maybe: bower completion > /usr/local/etc/bash_completion.d/bower -# - -COMP_WORDBREAKS=${COMP_WORDBREAKS/=/} -COMP_WORDBREAKS=${COMP_WORDBREAKS/@/} -export COMP_WORDBREAKS - -if type complete &>/dev/null; then - _bower_completion () { - local si="$IFS" - IFS=$'\n' COMPREPLY=($(COMP_CWORD="$COMP_CWORD" \ - COMP_LINE="$COMP_LINE" \ - COMP_POINT="$COMP_POINT" \ - bower completion -- "${COMP_WORDS[@]}" \ - 2>/dev/null)) || return $? - IFS="$si" - } - complete -F _bower_completion bower -elif type compdef &>/dev/null; then - _bower_completion() { - si=$IFS - compadd -- $(COMP_CWORD=$((CURRENT-1)) \ - COMP_LINE=$BUFFER \ - COMP_POINT=0 \ - bower completion -- "${words[@]}" \ - 2>/dev/null) - IFS=$si - } - compdef _bower_completion bower -elif type compctl &>/dev/null; then - _bower_completion () { - local cword line point words si - read -Ac words - read -cn cword - let cword-=1 - read -l line - read -ln point - si="$IFS" - IFS=$'\n' reply=($(COMP_CWORD="$cword" \ - COMP_LINE="$line" \ - COMP_POINT="$point" \ - bower completion -- "${words[@]}" \ - 2>/dev/null)) || return $? - IFS="$si" - } - compctl -K _bower_completion bower -fi -###-end-bower-completion-### -