Sha256: 1d32463509dd40c465d5fd4e7d975d889eeb514e5adf10e4f536fbdb3e1c3e33

Contents?: true

Size: 1.48 KB

Versions: 17

Compression:

Stored size: 1.48 KB

Contents

###-begin-karma-completion-###
#
# karma command completion script
# This is stolen from NPM. Thanks @isaac!
#
# Installation: karma completion >> ~/.bashrc  (or ~/.zshrc)
# Or, maybe: karma completion > /usr/local/etc/bash_completion.d/karma
#

if type complete &>/dev/null; then
  __karma_completion () {
    local si="$IFS"
    IFS=$'\n' COMPREPLY=($(COMP_CWORD="$COMP_CWORD" \
                           COMP_LINE="$COMP_LINE" \
                           COMP_POINT="$COMP_POINT" \
                           karma completion -- "${COMP_WORDS[@]}" \
                           2>/dev/null)) || return $?
    IFS="$si"
  }
  complete -F __karma_completion karma
elif type compdef &>/dev/null; then
  __karma_completion() {
    si=$IFS
    compadd -- $(COMP_CWORD=$((CURRENT-1)) \
                 COMP_LINE=$BUFFER \
                 COMP_POINT=0 \
                 karma completion -- "${words[@]}" \
                 2>/dev/null)
    IFS=$si
  }
  compdef __karma_completion karma
elif type compctl &>/dev/null; then
  __karma_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" \
                       karma completion -- "${words[@]}" \
                       2>/dev/null)) || return $?
    IFS="$si"
  }
  compctl -K __karma_completion karma
fi
###-end-karma-completion-###

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
hooch-0.4.2 jasmine/node_modules/karma/karma-completion.sh
hooch-0.4.1 jasmine/node_modules/karma/karma-completion.sh
hooch-0.4.0 jasmine/node_modules/karma/karma-completion.sh
hooch-0.3.0 jasmine/node_modules/karma/karma-completion.sh
hooch-0.2.1 jasmine/node_modules/karma/karma-completion.sh
hooch-0.2.0 jasmine/node_modules/karma/karma-completion.sh
hooch-0.1.0 jasmine/node_modules/karma/karma-completion.sh
hooch-0.0.8 jasmine/node_modules/karma/karma-completion.sh
hooch-0.0.7 jasmine/node_modules/karma/karma-completion.sh
hooch-0.0.6 jasmine/node_modules/karma/karma-completion.sh
entangled-0.0.16 spec/dummy/public/node_modules/karma/karma-completion.sh
entangled-0.0.15 spec/dummy/public/node_modules/karma/karma-completion.sh
entangled-0.0.14 spec/dummy/public/node_modules/karma/karma-completion.sh
entangled-0.0.13 spec/dummy/public/node_modules/karma/karma-completion.sh
entangled-0.0.12 spec/dummy/public/node_modules/karma/karma-completion.sh
entangled-0.0.11 spec/dummy/public/node_modules/karma/karma-completion.sh
entangled-0.0.10 spec/dummy/public/node_modules/karma/karma-completion.sh