Shell Completion

    Bash for Linux requires bash-completion, please follow their installation .

    Verify if it was installed correctly by executing the following command .

    Or:

      By default MacOS comes with Bash 3.2, but the completion requires version 4.1+. See this instructions to upgrade.

      And add the following to your file:

      1. export BASH_COMPLETION_COMPAT_DIR="/usr/local/etc/bash_completion.d"

      You can enabled OpenFaaS completion with two different commands:

      1. $ faas-cli completion --shell bash > /etc/bash_completion.d/faas-cli

      ZSH completion is simpler, just execute the following command: