[Python-modules-team] Bug#895338: awscli: zsh completion doesn't work as expected

Shengjing Zhu i at zhsj.me
Tue Apr 10 04:43:31 BST 2018


Package: awscli
Version: 1.14.44-1
Severity: minor

Dear Maintainer,

This package ships /usr/share/zsh/vendor-completions/_awscli which I
expect it to work like other files in zsh/vendor-completions.

For example, I should have `aws` completion if I just called `compinit`
in my zshrc.

But I still need to `source /usr/share/zsh/vendor-completions/_awscli`
to get the completion working.

Maybe you can't call `bashcompinit` in files under
zsh/vendor-completions?

So I think _awscli file is not in a proper position.

I find oh-my-zsh has a awscli plugin, but it expects
aws_zsh_completer.sh in $PATH.
https://github.com/robbyrussell/oh-my-zsh/blob/62b8a70a7c5d0c939d8dabfef48796a092d1a55f/plugins/aws/aws.plugin.zsh#L48

Should the upstream aws_zsh_completer.sh not be renamed to _awscli?

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing'), (100, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.15.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages awscli depends on:
ii  python3             3.6.4-1
ii  python3-botocore    1.8.48+repack-1
ii  python3-colorama    0.3.7-1
ii  python3-docutils    0.14+dfsg-3
ii  python3-rsa         3.4.2-1
ii  python3-s3transfer  0.1.13-1
ii  python3-yaml        3.12-1+b1

awscli recommends no packages.

awscli suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20180410/818c37b7/attachment.sig>


More information about the Python-modules-team mailing list