Skip to content
⌘K

Command reference

okibi completion

Generate the autocompletion script for the specified shell

Generated from okibi 0.2.4. Every command also takes the global flag --agent.

Generate the autocompletion script for okibi for the specified shell. See each sub-command's help for details on how to use the generated script.

Usage
okibi completion [command]

Commands

bashGenerate the autocompletion script for bash
fishGenerate the autocompletion script for fish
powershellGenerate the autocompletion script for powershell
zshGenerate the autocompletion script for zsh

okibi completion bash

Generate the autocompletion script for the bash shell.

This script depends on the 'bash-completion' package. If it is not installed already, you can install it via your OS's package manager.

To load completions in your current shell session:

Example
source <(okibi completion bash)

To load completions for every new session, execute once:

Linux:

Example
okibi completion bash > /etc/bash_completion.d/okibi

macOS:

Example
okibi completion bash > $(brew --prefix)/etc/bash_completion.d/okibi

You will need to start a new shell for this setup to take effect.

Usage
okibi completion bash

Flags

FlagTypeDescription
--no-descriptionsbooldisable completion descriptions

okibi completion fish

Generate the autocompletion script for the fish shell.

To load completions in your current shell session:

Example
okibi completion fish | source

To load completions for every new session, execute once:

Example
okibi completion fish > ~/.config/fish/completions/okibi.fish

You will need to start a new shell for this setup to take effect.

Usage
okibi completion fish [flags]

Flags

FlagTypeDescription
--no-descriptionsbooldisable completion descriptions

okibi completion powershell

Generate the autocompletion script for powershell.

To load completions in your current shell session:

Example
okibi completion powershell | Out-String | Invoke-Expression

To load completions for every new session, add the output of the above command to your powershell profile.

Usage
okibi completion powershell [flags]

Flags

FlagTypeDescription
--no-descriptionsbooldisable completion descriptions

okibi completion zsh

Generate the autocompletion script for the zsh shell.

If shell completion is not already enabled in your environment you will need to enable it. You can execute the following once:

Example
echo "autoload -U compinit; compinit" >> ~/.zshrc

To load completions in your current shell session:

Example
source <(okibi completion zsh)

To load completions for every new session, execute once:

Linux:

Example
okibi completion zsh > "${fpath[1]}/_okibi"

macOS:

Example
okibi completion zsh > $(brew --prefix)/share/zsh/site-functions/_okibi

You will need to start a new shell for this setup to take effect.

Usage
okibi completion zsh [flags]

Flags

FlagTypeDescription
--no-descriptionsbooldisable completion descriptions