Skip to main content
1 of 4
fra-san
  • 10.9k
  • 2
  • 27
  • 45

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 
fra-san
  • 10.9k
  • 2
  • 27
  • 45