refactor: shorter names for autocomplete files

This commit is contained in:
decentral1se 2021-09-10 23:44:32 +02:00
parent 99160967a8
commit bc5fc0b0cb
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
4 changed files with 7 additions and 4 deletions

View File

@ -42,21 +42,24 @@ The abra binary will be in `$GOPATH/bin`.
**bash**
Copy `autocomplete/bash_autocomplete` into `/etc/bash_completion.d/` and rename
Copy `autocomplete/bash` into `/etc/bash_completion.d/` and rename
it to abra.
```
sudo cp autocomplete/bash_autocomplete /etc/bash_completion.d/abra
sudo cp autocomplete/bash /etc/bash_completion.d/abra
source /etc/bash_completion.d/abra
```
**(fi)zsh**
(fi)zsh doesn't have an autocompletion folder by default but you can create one, then copy `zsh_autocomplete` into it and add a couple lines to your `~/.zshrc` or `~/.fizsh/.fizshrc`
(fi)zsh doesn't have an autocompletion folder by default but you can create one, then copy `autocomplete/zsh` into it and add a couple lines to your `~/.zshrc` or `~/.fizsh/.fizshrc`
```
sudo mkdir /etc/zsh/completion.d/
sudo cp autocomplete/zsh_autocomplete /etc/zsh/completion.d/abra
sudo cp autocomplete/zsh /etc/zsh/completion.d/abra
echo "PROG=abra\n_CLI_ZSH_AUTOCOMPLETE_HACK=1\nsource /etc/zsh/completion.d/abra" >> ~/.zshrc
```
(replace .zshrc with ~/.fizsh/.fizshrc if you use fizsh)
## Hacking