Bash Completion

Scuba supports command-line completion using the argcomplete package. Per the argcomplete README, command-line completion can be activated by:

  • Running eval "$(register-python-argcomplete scuba)" manually to enable completion in the current shell instance

  • Adding eval "$(register-python-argcomplete scuba)" to ~/.bash_completion

  • Running activate-global-python-argcomplete --user to install the script ~/.bash_completion.d/python-argcomplete.

    Note

    The generated file must be sourced, which is not the default behavior. Adding the following code block to ~/.bash_completion is one possible solution:

    for bcfile in ~/.bash_completion.d/*; do
        [ -f "$bcfile" ] && . "$bcfile"
    done
    
  • Running activate-global-python-argcomplete as root (or sudo) to use argcomplete for all users