Configuring the OpenShift CLI

    After you install the OpenShift CLI (), you can enable tab completion to automatically complete oc commands or suggest options when you press Tab. The following procedure enables tab completion for the Bash shell.

    Prerequisites

    • You must have the OpenShift CLI (oc) installed.

    • You must have the package installed.

    1. Copy the file to /etc/bash_completion.d/:

      You can also save the file to a local directory and source it from your .bashrc file instead.

    Tab completion is enabled when you open a new terminal.

    Enabling tab completion for Zsh

    Prerequisites

    • You must have the OpenShift CLI (oc) installed.

    Procedure

    Tab completion is enabled when you open a new terminal.