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

fix aws completer path on nixos #8707

Merged
merged 2 commits into from
Mar 9, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update plugins/aws/aws.plugin.zsh
Co-Authored-By: Marc Cornellà <marc.cornella@live.com>
  • Loading branch information
contrun and mcornella authored Mar 9, 2020
commit f480409218e25cdc54763d88c579a588a39dc353
4 changes: 2 additions & 2 deletions plugins/aws/aws.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ else
elif [[ -e /usr/share/zsh/vendor-completions/_awscli ]]; then
_aws_zsh_completer_path=/usr/share/zsh/vendor-completions/_awscli
# NixOS
elif [[ -e "$(dirname "$(dirname $(realpath "$(command -v aws)"))")/share/zsh/site-functions/aws_zsh_completer.sh" ]]; then
_aws_zsh_completer_path="$(dirname "$(dirname $(realpath "$(command -v aws)"))")/share/zsh/site-functions/aws_zsh_completer.sh"
elif [[ -e "${commands[aws]:P:h:h}/share/zsh/site-functions/aws_zsh_completer.sh" ]]; then
_aws_zsh_completer_path="${commands[aws]:P:h:h}/share/zsh/site-functions/aws_zsh_completer.sh"
# RPM
else
_aws_zsh_completer_path=/usr/share/zsh/site-functions/aws_zsh_completer.sh
Expand Down