todd-dsm / mac-ops

QnD Automation to build a MacBook Pro for DevOps
MIT License
11 stars 7 forks source link

no such file or directory: /usr/local/bin/aws_zsh_completer.sh #81

Open todd-dsm opened 2 years ago

todd-dsm commented 2 years ago

Research

we expect it here: /usr/local/bin/aws_zsh_completer.sh

But we found it here

% find /usr/local -type f -name 'aws_zsh_completer.sh'
/usr/local/Cellar/awscli/2.4.24/libexec/bin/aws_zsh_completer.sh
/usr/local/Cellar/awscli/2.4.24/share/zsh/site-functions/aws_zsh_completer.sh
todd-dsm commented 2 years ago

Found

ll /usr/local/share/zsh/site-functions 
total 0
lrwxr-xr-x 1 todd.thomas 59 Mar  8 21:34 _aws -> ../../../Cellar/awscli/2.4.24/share/zsh/site-functions/_aws
lrwxr-xr-x 1 todd.thomas 59 Mar  8 21:09 _bazel -> ../../../Cellar/bazel/5.0.0/share/zsh/site-functions/_bazel
...
lrwxr-xr-x 1 todd.thomas 75 Mar  8 21:34 aws_zsh_completer.sh -> ../../../Cellar/awscli/2.4.24/share/zsh/site-functions/aws_zsh_completer.sh
lrwxr-xr-x 1 todd.thomas 71 Mar  8 19:26 git-completion.bash -> ../../../Cellar/git/2.35.1/share/zsh/site-functions/git-completion.bash
todd-dsm commented 2 years ago

Also, this...

type:51: bad option: -P

FR: complete -C "$(type -P aws_completer)" aws
TO: complete -C "$(command -v aws_completer)" aws