Issue
AWS documentation does explain how to enable autocompletition for AWS CLI installed via official snap package.
Suppose you install AWS CLI the following way (with or without sudo):
snap install aws-cli --classic
Snap autocompletition would be located here:
/snap/aws-cli/current/bin/aws_completer
Add this to ~/.zshrc
:
autoload -U +X bashcompinit && bashcompinit
autoload -Uz compinit && compinit
complete -C '/snap/aws-cli/current/bin/aws_completer' aws
Then source the environment:
source ~/.zshrc
You may encounter:
_zsh_highlight_widget_orig-s000-r241-orig-s000-r869-orig-s000-r479-accept-line:3: maximum nested function level reached; increase FUNCNEST?
As reported here [bug]: maximum nested function level reached · Issue #65 · zdharma-continuum/fast-syntax-highlighting which can be temporary fixed by:
export FUNCNEST=1000