Sha256: d25f62b33e9b697e44dd8f1e62ffefc4bc6301e72f2e5bd27df0c898cbe41412

Contents?: true

Size: 490 Bytes

Versions: 1

Compression:

Stored size: 490 Bytes

Contents

#!/usr/bin/env bash

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

    if [ "$COMP_CWORD" -eq 1 ]; then
        COMPREPLY=( $(compgen -W "$(tmuxinator commands)" -- "$word") )
    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

1 entries across 1 versions & 1 rubygems

Version Path
tmuxinator-0.6.5 completion/tmuxinator.bash