You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-portage/hackport/files/hackport.bash.completion

15 lines
338 B

_hackport()
{
local CMDLINE
local IFS=$'\n'
CMDLINE=(+RTS -I0 -A8M -N1 -qg -RTS --bash-completion-index $COMP_CWORD)
for arg in ${COMP_WORDS[@]}; do
CMDLINE=(${CMDLINE[@]} --bash-completion-word $arg)
done
COMPREPLY=( $(/usr/bin/hackport "${CMDLINE[@]}") )
}
complete -o filenames -F _hackport hackport