Since you are using bash-completion, the easiest solution is probably to ask it how nohup is completed:
$ complete -p nohup complete -F _command nohup and then apply the same completion recipe to detach:
$ complete -F _command detach Since you are using bash-completion, the easiest solution is probably to ask it how nohup is completed:
$ complete -p nohup complete -F _command nohup and then apply the same completion recipe to detach:
$ complete -F _command detach