Skip to content

Commit

Permalink
aws: fix awscli completion path on NixOS (ohmyzsh#8707)
Browse files Browse the repository at this point in the history
  • Loading branch information
contrun authored and dukegod committed May 9, 2020
1 parent b4e4c68 commit 1b06cc7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/aws/aws.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ else
# Ubuntu
elif [[ -e /usr/share/zsh/vendor-completions/_awscli ]]; then
_aws_zsh_completer_path=/usr/share/zsh/vendor-completions/_awscli
# NixOS
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

0 comments on commit 1b06cc7

Please sign in to comment.