-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
awscli formula creates a zsh completer that doesn't work #30268
Comments
Looks like the file in |
The issue with not creating Currently, the |
@tnarik hi actually zsh completion works fine. As one of the caveats mentions after installation of aws-cli you need to source the aws_zsh_completer.sh,
However, your issue seems to be with |
Sure, a workaround could be applied but it would be way more straightforward to just source the file and also adding the autocomplete script to a more or less standard PATH folder like the bundled installer does (not a package specific one like the formula does). This will integrate better with the |
A pull request with proposed changes will help move this towards a resolution. |
changing exec to source in /usr/local/Cellar/awscli/1.3.23/bin/aws_zsh_completer.sh fixes the issue, but I don't see how to fix this in the brew .rb file, otherwise i'd submit a proposed change. |
In that case it sounds like it may be an upstream issue. |
|
I don't really understand this comment:
I tend to agree with this comment: #30268 (comment) Basically I don't understand why a completion script is expected to be installed into |
It is probably worthwhile modifying the oh-my-zsh script to search for somewhere other than bin and not use the broken home-brew script (and I can submit something to that code base), but really the one line aws_zsh_completer.sh script that gets installed with brew needs fixing. As I said in my first comment, the problem is with the use of exec rather than source. My knowledge of this stuff is limited, but the way the script runs via exec it's producing a blank zsh fpath, which causes issues with the autoload command in the original awscli aws_zsh_completer.sh script. I still don't see where the the bin/aws_zsh_completer.sh wrapper script is created by homebrew. Can anyone give any pointers to that? |
|
the mangled version installed into $(brew-prefix)/bin if using homebrew installed awscli on OSX. This was discussed here - Homebrew/legacy-homebrew#30268
It looks like this was addressed in oh-my-zsh. If there is more that needs to be done, please open a pull request. |
the mangled version installed into $(brew-prefix)/bin if using homebrew installed awscli on OSX. This was discussed here - Homebrew/legacy-homebrew#30268
the mangled version installed into $(brew-prefix)/bin if using homebrew installed awscli on OSX. This was discussed here - Homebrew/legacy-homebrew#30268
the mangled version installed into $(brew-prefix)/bin if using homebrew installed awscli on OSX. This was discussed here - Homebrew/legacy-homebrew#30268
the mangled version installed into $(brew-prefix)/bin if using homebrew installed awscli on OSX. This was discussed here - Homebrew/legacy-homebrew#30268
the mangled version installed into $(brew-prefix)/bin if using homebrew installed awscli on OSX. This was discussed here - Homebrew/legacy-homebrew#30268
the mangled version installed into $(brew-prefix)/bin if using homebrew installed awscli on OSX. This was discussed here - Homebrew/legacy-homebrew#30268
the mangled version installed into $(brew-prefix)/bin if using homebrew installed awscli on OSX. This was discussed here - Homebrew/legacy-homebrew#30268
the mangled version installed into $(brew-prefix)/bin if using homebrew installed awscli on OSX. This was discussed here - Homebrew/legacy-homebrew#30268
It creates:
And, therefore, it doesn't work. It should be doing something in the line of
source /usr/local/Cellar/awscli/1.3.11/libexec/bin/aws_zsh_completer.sh
.The text was updated successfully, but these errors were encountered: