Skip to content

Commit

Permalink
docs: add completions docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cestef committed Jun 21, 2024
1 parent f2971e7 commit 41c051b
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docs/pages/completions.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { Tabs } from "nextra/components"

# Installing completions

Based on the shell you are using, you can install completions with the following commands:

<Tabs items={["bash", "fish", "zsh", "nushell"]}>
<Tabs.Tab>
```bash copy
rwalk --completions bash > /usr/local/etc/bash_completion.d/
```
</Tabs.Tab>
<Tabs.Tab>
```bash copy
rwalk --completions fish > ~/.config/fish/completions/rwalk.fish
```
</Tabs.Tab>
<Tabs.Tab>
```bash copy
rwalk --completions zsh > /usr/local/share/zsh/site-functions/_rwalk
```
</Tabs.Tab>
<Tabs.Tab>
```bash copy
mkdir $"($nu.default-config-dir)/completions"; rwalk --completions nushell | save $"($nu.default-config-dir)/completions/rwalk.nu" -f; echo 'source $"($nu.default-config-dir)/completions/rwalk.nu"' | save -a $nu.config-path
```
</Tabs.Tab>
</Tabs>

After running the above command, you will need to restart your shell to use the completions.

0 comments on commit 41c051b

Please sign in to comment.