提交 380ee4a5 作者: Dylan Powers

docs: Command-completion additional refs section

上级 d6d038bf
...@@ -4,15 +4,15 @@ Command Completion ...@@ -4,15 +4,15 @@ Command Completion
Shell command completion is provided by the script at Shell command completion is provided by the script at
`/misc/completion/ipfs-completion.bash`. `/misc/completion/ipfs-completion.bash`.
Installation
------------
The simplest way to see it working is to run The simplest way to see it working is to run
`source misc/completion/ipfs-completion.bash` straight from your shell. This `source misc/completion/ipfs-completion.bash` straight from your shell. This
is only temporary and to fully enable it, you'll have to follow one of the steps is only temporary and to fully enable it, you'll have to follow one of the steps
below. below.
Linux ### Bash on Linux
-----
### Bash
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 add
```bash ```bash
if [ -n "$GOPATH" ]; then if [ -n "$GOPATH" ]; then
...@@ -23,3 +23,8 @@ into your `~/.bash_completion`. It will automatically be loaded the next time ...@@ -23,3 +23,8 @@ into your `~/.bash_completion`. 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/`.
Additional References
---------------------
* https://www.debian-administration.org/article/316/An_introduction_to_bash_completion_part_1
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论