1 2 3 4 5 6 7 8 9
_ascii-fluid-dynamics() { pushd /usr/lib/ascii-fluid-dynamics-git &>/dev/null shopt -s dotglob local things=(*) COMPREPLY=( $(compgen -W "--color ${things[*]}" -- "${COMP_WORDS[COMP_CWORD]}") ) popd &>/dev/null } complete -F _ascii-fluid-dynamics ascii-fluid-dynamics