Sha256: 34ce3264133af0210a92e39b94b3147b06feeb82ad1a3b37c045bda2e33f4546

Contents?: true

Size: 513 Bytes

Versions: 1

Compression:

Stored size: 513 Bytes

Contents

#!/usr/bin/env bash
#
# Sym command line completion
#
# © 2015-2016, Konstantin Gredeskoul,  https://github.com/kigster/sym
# MIT LICENSE
#

_sym() {
    local SYM_OPTS SYM_POINTS cur prev

    cur="${COMP_WORDS[COMP_CWORD]}"
    prev="${COMP_WORDS[COMP_CWORD-1]}"

    COMPREPLY=()

    SYM_COMP_OPTIONS=$(sym --dictionary)
    [[ $COMP_CWORD == 1 ]] && SYM_COMP_OPTIONS="${SYM_COMP_OPTIONS} ${SYM_COMMANDS}"
    COMPREPLY=( $(compgen -W "${SYM_COMP_OPTIONS}" -- ${cur}) )
    return 0
}

complete -F _sym sym

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sym-2.0.0 bin/sym.bash-completion