docs: how to enable bash autocomplete from source
continuous-integration/drone/push Build is passing Details

This commit is contained in:
3wc 2021-10-14 22:37:32 +02:00
parent 75fb9a2774
commit e820e0219d
1 changed files with 7 additions and 0 deletions

View File

@ -50,6 +50,13 @@ sudo cp scripts/autocomplete/bash /etc/bash_completion.d/abra
source /etc/bash_completion.d/abra
```
In development, you can source the script in your git checkout, just make sure
to set `PROG=abra`, otherwise it'll add completion to the wrong command:
```
PROG=abra source /path/to/abra/scripts/autocomplete/bash
```
**(fi)zsh**
(fi)zsh doesn't have an autocompletion folder by default but you can create one, then copy `scripts/autocomplete/zsh` into it and add a couple lines to your `~/.zshrc` or `~/.fizsh/.fizshrc`