Sha256: 10d30dfa98d34c5f209f24c0931955e6909ba148743e83d9ffe3fe3ceaf9c1e2

Contents?: true

Size: 620 Bytes

Versions: 7

Compression:

Stored size: 620 Bytes

Contents

#!/usr/bin/env bash

_tmuxinator() {
    COMPREPLY=()
    local word="${COMP_WORDS[COMP_CWORD]}"

    if [ "$COMP_CWORD" -eq 1 ]; then
        local commands="$(compgen -W "$(tmuxinator commands)" -- "$word")"
        local projects="$(compgen -W "$(tmuxinator completions start)" -- "$word")"

        COMPREPLY=( $commands $projects )
    else
        local words=("${COMP_WORDS[@]}")
        unset words[0]
        unset words[$COMP_CWORD]
        local completions=$(tmuxinator completions "${words[@]}")
        COMPREPLY=( $(compgen -W "$completions" -- "$word") )
    fi
}

complete -F _tmuxinator tmuxinator mux

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tmuxinator-0.6.8 completion/tmuxinator.bash
tmuxinator-0.6.7 completion/tmuxinator.bash
tmuxinator-0.6.7.pre completion/tmuxinator.bash
tmuxinator-0.6.6 completion/tmuxinator.bash
tmuxinator-0.6.6.pre.3 completion/tmuxinator.bash
tmuxinator-0.6.6.pre.2 completion/tmuxinator.bash
tmuxinator-0.6.6.pre completion/tmuxinator.bash