1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-10-25 10:27:01 +08:00

docs: Add completion instructions that don't require go

This commit is contained in:
Dylan Powers
2015-04-22 11:33:46 -07:00
parent 380ee4a535
commit 08c15e4349

View File

@ -13,14 +13,13 @@ is only temporary and to fully enable it, you'll have to follow one of the steps
below. below.
### Bash on Linux ### Bash on Linux
For bash, completion can be enabled in a couple of ways. One is to add For bash, completion can be enabled in a couple of ways. One is to copy the
completion script to the directory `~/.ipfs/` and then in the file
`~/.bash_completion` add
```bash ```bash
if [ -n "$GOPATH" ]; then source ~/.ipfs/ipfs-completion.bash
source $GOPATH/src/github.com/ipfs/go-ipfs/misc/completion/ipfs-completion.bash
fi
``` ```
into your `~/.bash_completion`. It will automatically be loaded the next time It will automatically be loaded the next time bash is loaded.
bash is loaded.
To enable ipfs command completion globally on your system you may also To enable ipfs command completion globally on your system you may also
copy the completion script to `/etc/bash_completion.d/`. copy the completion script to `/etc/bash_completion.d/`.