Skip to main content
Version: v3

odo completion

Description

odo completion is used to generate shell completion code. The generated code provides interactive shell completion code for odo.

There is support for the following terminal shells:

Running the Command

To generate the shell completion code, the command can be ran as follows:

odo completion [SHELL]

Bash

Load into your current shell environment:

source <(odo completion bash)

Load persistently:

# Save the completion to a file
odo completion bash > ~/.odo/completion.bash.inc

# Load the completion from within your $HOME/.bash_profile
source ~/.odo/completion.bash.inc

Zsh

Load into your current shell environment:

source <(odo completion zsh)

Load persistently:

odo completion zsh > "${fpath[1]}/_odo"

Fish

Load into your current shell environment:

source <(odo completion fish)

Load persistently:

odo completion fish > ~/.config/fish/completions/odo.fish

Powershell

Load into your current shell environment:

odo completion powershell | Out-String | Invoke-Expression

Load persistently:

odo completion powershell >> $PROFILE