| 1 | # Command Completion |
| 2 | |
| 3 | Shell command completions can be generated by running one of the `ipfs commands completions` |
| 4 | sub-commands. |
| 5 | |
| 6 | The simplest way to "eval" the completions logic: |
| 7 | |
| 8 | ```bash |
| 9 | > eval "$(ipfs commands completion bash)" |
| 10 | ``` |
| 11 | |
| 12 | To install the completions permanently, they can be moved to |
| 13 | `/etc/bash_completion.d` or sourced from your `~/.bashrc` file. |
| 14 | |
| 15 | ## Fish |
| 16 | |
| 17 | The fish shell is also supported: |
| 18 | |
| 19 | The simplest way to use the completions logic: |
| 20 | |
| 21 | ```bash |
| 22 | > ipfs commands completion fish | source |
| 23 | ``` |
| 24 | |
| 25 | To install the completions permanently, they can be moved to |
| 26 | `/etc/fish/completions` or `~/.config/fish/completions` or sourced from your `~/.config/fish/config.fish` file. |
| 27 | |
| 28 | ## ZSH |
| 29 | |
| 30 | The zsh shell is also supported: |
| 31 | |
| 32 | The simplest way to "eval" the completions logic: |
| 33 | |
| 34 | ```bash |
| 35 | > eval "$(ipfs commands completion zsh)" |
| 36 | ``` |
| 37 | |
| 38 | To install the completions permanently, they can be moved to |
| 39 | `/etc/bash_completion.d` or sourced from your `~/.zshrc` file. |