ghcup-0.2.7.0 / scripts / shell-completions / bash
_ghcup(){ 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=( $(ghcup "${CMDLINE[@]}") )}complete -o filenames -F _ghcup ghcup