Skip to content

Commit

Permalink
doc(completion): suggest eval instead of writing a file
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jul 1, 2021
1 parent 0060d5f commit 7940371
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/command-completion.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
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:
The simplest way to "eval" the completions logic:

```bash
> ipfs commands completion bash > ipfs-completion.bash
> source ./ipfs-completion.bash
> eval "$(ipfs commands completion bash)"
```

To install the completions permanently, they can be moved to
Expand Down

0 comments on commit 7940371

Please sign in to comment.