Skip to content

Autocompletion bash & zsh

Victor GRENU edited this page May 5, 2018 · 3 revisions

Autocompletion bash & zsh

You can easily generate awless completion, either for bash or zsh.

Bash

For Mac OS X, with brew

$ brew install bash-completion
$ echo '[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion' >> ~/.bashrc
$ awless completion bash > /usr/local/etc/bash_completion.d/awless

For Ubuntu

$ sudo apt-get install bash-completion
$ awless completion bash | sudo tee /etc/bash_completion.d/awless > /dev/null

Zsh

Test once with

$ source <(awless completion zsh)

Then add it to your ~/.zshrc by running:

$ echo 'source <(awless completion zsh)\n' >> ~/.zshrc
Clone this wiki locally