Skip to main content
1 of 2

Bash completion for nohup

I create detach script being a wrapper over 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-complation for detach utility?