kubo/docs/command-completion.md
Steven Allen 0060d5f7c8 feat: programmatic shell completions
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
2021-07-01 08:46:49 -07:00

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.