1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-05-16 22:47:18 +08:00
Files
kubo/docs/command-completion.md
Amir Mohammad Fakhimi ced348366c feat: add zsh completions (#10040)
Co-authored-by: Henrique Dias <hacdias@gmail.com>
2023-08-17 16:43:27 +02:00

953 B

Command Completion

Shell command completions can be generated by running one of the ipfs commands completions sub-commands.

The simplest way to "eval" the completions logic:

> eval "$(ipfs commands completion bash)"

To install the completions permanently, they can be moved to /etc/bash_completion.d or sourced from your ~/.bashrc file.

Fish

The fish shell is also supported:

The simplest way to use the completions logic:

> ipfs commands completion fish | source

To install the completions permanently, they can be moved to /etc/fish/completions or ~/.config/fish/completions or sourced from your ~/.config/fish/config.fish file.

ZSH

The zsh shell is also supported:

The simplest way to "eval" the completions logic:

> eval "$(ipfs commands completion zsh)"

To install the completions permanently, they can be moved to /etc/bash_completion.d or sourced from your ~/.zshrc file.