nsc.
Use nsc completion to generate completion scripts for Bash, fish, PowerShell, or Zsh. Source the generated script in the current shell or install it for future sessions.
Usage
nsc completion bash
Generate a Bash completion script. The script requires the bash-completion package.