I created a detach script, being a wrapper around nohup:
#!/bin/bash /usr/bin/nohup "$@" &> /dev/null & and I want to get bash-completion to work for this script.
I try to use complete -c detach, but for all arguments there is an addition from the utilities from PATH.
How to properly implement bash-completion for my detach utility?