mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-06 00:38:08 +08:00
These are missing some of the features of the current hand-rolled completions, but: 1. Are less buggy. 2. Cover _all_ commands. 3. Don't need to be manually maintained (which we never do anyways). fixes #4551 fixes #8033
16 lines
446 B
Markdown
16 lines
446 B
Markdown
# Command Completion
|
|
|
|
Shell command completions can be generated by running one of the `ipfs commands completions`
|
|
sub-commands.
|
|
|
|
The simplest way to see it working is write the completions
|
|
to a file and then source it:
|
|
|
|
```bash
|
|
> ipfs commands completion bash > ipfs-completion.bash
|
|
> source ./ipfs-completion.bash
|
|
```
|
|
|
|
To install the completions permanently, they can be moved to
|
|
`/etc/bash_completion.d` or sourced from your `~/.bashrc` file.
|