Skip to content

Commit

Permalink
Added autocomplete setup for bash, zsh, and fish shells.
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaGanzin committed Aug 2, 2024
1 parent f495cc6 commit c846bbf
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,16 @@ yay -S await
curl https://i.jpillora.com/slavaGanzin/await! | bash
```

bash
await --autocomplete-bash > /etc/bash_completion.d/await

zsh
await --autocomplete-zsh > ~/.zsh/completion/_await
fpath=(~/.zsh/completion $fpath)
autoload -Uz compinit && compinit

## completions
It's a single binary distribution, so you need to do it yourself:
```bash
fish
# bash
await --autocomplete-bash > ~/.bashrc

#zsh
await --autocomplete-zsh > ~/.zshrc

#fish
await --autocomplete-fish > ~/.config/fish/completions/await.fish
```

Expand Down

0 comments on commit c846bbf

Please sign in to comment.