docs: Add completion instructions that don't require go
Dylan Powers committed
Apr 22, 2015 at 11:33 UTC
08c15e4349d8c942d54d35b49cb3776e7b40ea61
1 file changed
+5
-6
docs/command-completion.md
+5
-6
@@ -13,14 +13,13 @@ is only temporary and to fully enable it, you'll have to follow one of the steps
13
below.
14
15
### Bash on Linux
16
-For bash, completion can be enabled in a couple of ways. One is to add
16
+For bash, completion can be enabled in a couple of ways. One is to copy the
17
+completion script to the directory `~/.ipfs/` and then in the file
18
+`~/.bash_completion` add
19
```bash
18
-if [ -n "$GOPATH" ]; then
19
- source $GOPATH/src/github.com/ipfs/go-ipfs/misc/completion/ipfs-completion.bash
20
-fi
20
+source ~/.ipfs/ipfs-completion.bash
21
```
22
-into your `~/.bash_completion`. It will automatically be loaded the next time
23
-bash is loaded.
22
+It will automatically be loaded the next time bash is loaded.
23
To enable ipfs command completion globally on your system you may also
24
copy the completion script to `/etc/bash_completion.d/`.
25