cabal-rpm/bash_completion
2020-08-13 13:01:21 +08:00

15 lines
313 B
Bash

_cabal-rpm()
{
local CMDLINE
local IFS=$'\n'
CMDLINE=(--bash-completion-index $COMP_CWORD)
for arg in ${COMP_WORDS[@]}; do
CMDLINE=(${CMDLINE[@]} --bash-completion-word $arg)
done
COMPREPLY=( $(cabal-rpm "${CMDLINE[@]}") )
}
complete -o filenames -F _cabal-rpm cabal-rpm cblrpm