Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Awscli autocomple is not working #1142

Closed
voanhduy1512 opened this issue May 12, 2016 · 4 comments
Closed

Awscli autocomple is not working #1142

voanhduy1512 opened this issue May 12, 2016 · 4 comments

Comments

@voanhduy1512
Copy link

Hi, I am using prezto with zsh 5.2 on OSX. When i install awscli using homebrew, they copy an autocomplete file to /usr/local/share/zsh/site-functions/_aws. But look like prezto not source it by default, i need to manually run source /usr/local/share/zsh/site-functions/_aws to make it working.
I already enable module completion, other command like git and brew have autocomplete correctly.
Can you help me see where is the problem?

@rakkesh
Copy link

rakkesh commented May 24, 2016

add the following line to your ~/.zshrc file,
fpath=(/usr/local/share/zsh/site-functions $fpath)

and then execute the following commands,

% rm -f ~/.zcompdump; compinit

@voanhduy1512
Copy link
Author

Tried it but it isn't working. I already have /usr/local/share/zsh/site-functions in my fpath, other completion in that folder works fine except for aws.

@sorin-ionescu
Copy link
Owner

Submit it to https://github.com/zsh-users/zsh-completions.

@cjk
Copy link

cjk commented Dec 4, 2023

Not sure what the current status is, but since the zsh-completions project denied picking up AWS-CLI completions, I was able to make it work by enabling bashcompinit in zprezto and then adding complete -C '/usr/bin/aws_completer' aws to my .zshrc-file.
Just make sure aws_completer is available in your path (which it is on Arch-Linux etc. depending on your package-mananger)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants