mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +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
446 B
446 B
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:
> 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.