This is a cache of https://docs.openshift.com/container-platform/4.11/cli_reference/tkn_cli/op-configuring-tkn.html. It is a snapshot of the page at 2024-11-22T14:01:31.913+0000.
Configuring tkn - Pipelines <strong>cli</strong> (tkn) | <strong>cli</strong> tools | OpenShift Container Platform 4.11
×

Configure the Red Hat OpenShift Pipelines tkn cli to enable tab completion.

Enabling tab completion

After you install the tkn cli, you can enable tab completion to automatically complete tkn commands or suggest options when you press Tab.

Prerequisites
  • You must have the tkn cli tool installed.

  • You must have bash-completion installed on your local system.

Procedure

The following procedure enables tab completion for Bash.

  1. Save the Bash completion code to a file:

    $ tkn completion bash > tkn_bash_completion
  2. Copy the file to /etc/bash_completion.d/:

    $ sudo cp tkn_bash_completion /etc/bash_completion.d/

    Alternatively, you can 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.