forked from coop-cloud/abra
refactor: move autocomplete into scripts folder
This commit is contained in:
parent
bc5fc0b0cb
commit
27d665c3be
|
@ -42,21 +42,21 @@ The abra binary will be in `$GOPATH/bin`.
|
||||||
|
|
||||||
**bash**
|
**bash**
|
||||||
|
|
||||||
Copy `autocomplete/bash` into `/etc/bash_completion.d/` and rename
|
Copy `scripts/autocomplete/bash` into `/etc/bash_completion.d/` and rename
|
||||||
it to abra.
|
it to abra.
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo cp autocomplete/bash /etc/bash_completion.d/abra
|
sudo cp scripts/autocomplete/bash /etc/bash_completion.d/abra
|
||||||
source /etc/bash_completion.d/abra
|
source /etc/bash_completion.d/abra
|
||||||
```
|
```
|
||||||
|
|
||||||
**(fi)zsh**
|
**(fi)zsh**
|
||||||
|
|
||||||
(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`
|
(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`
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo mkdir /etc/zsh/completion.d/
|
sudo mkdir /etc/zsh/completion.d/
|
||||||
sudo cp autocomplete/zsh /etc/zsh/completion.d/abra
|
sudo cp scripts/autocomplete/zsh /etc/zsh/completion.d/abra
|
||||||
echo "PROG=abra\n_CLI_ZSH_AUTOCOMPLETE_HACK=1\nsource /etc/zsh/completion.d/abra" >> ~/.zshrc
|
echo "PROG=abra\n_CLI_ZSH_AUTOCOMPLETE_HACK=1\nsource /etc/zsh/completion.d/abra" >> ~/.zshrc
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue