doc(completion): suggest eval instead of writing a file
Steven Allen committed
Jul 1, 2021 at 08:45 UTC
79403716bf52bd6f8aa288d709217b4b2c5f04ff
1 file changed
+2
-4
docs/command-completion.md
+2
-4
@@ -3,12 +3,10 @@
3
Shell command completions can be generated by running one of the `ipfs commands completions`
4
sub-commands.
5
6
-The simplest way to see it working is write the completions
7
-to a file and then source it:
6
+The simplest way to "eval" the completions logic:
7
8
```bash
10
-> ipfs commands completion bash > ipfs-completion.bash
11
-> source ./ipfs-completion.bash
9
+> eval "$(ipfs commands completion bash)"
10
```
11
12
To install the completions permanently, they can be moved to