diff options
author | B YI <uuuuuu@protonmail.com> | 2020-03-10 00:07:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-09 17:07:34 +0100 |
commit | 4c73584025d0d70fde4a8e5c17d8a1d42a2a72ff (patch) | |
tree | 6c3ae3009747a005939a54bb42b679d7ceea6fb9 /plugins/aws/aws.plugin.zsh | |
parent | bc7f596dc084551eb0a86ae722ef054b7413a524 (diff) | |
download | zsh-4c73584025d0d70fde4a8e5c17d8a1d42a2a72ff.tar.gz zsh-4c73584025d0d70fde4a8e5c17d8a1d42a2a72ff.tar.bz2 zsh-4c73584025d0d70fde4a8e5c17d8a1d42a2a72ff.zip |
aws: fix awscli completion path on NixOS (#8707)
Diffstat (limited to 'plugins/aws/aws.plugin.zsh')
-rw-r--r-- | plugins/aws/aws.plugin.zsh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/aws/aws.plugin.zsh b/plugins/aws/aws.plugin.zsh index eab3dc76b..6fa8362ca 100644 --- a/plugins/aws/aws.plugin.zsh +++ b/plugins/aws/aws.plugin.zsh @@ -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 |