Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Fixing autocomplete when using Zsh with bashcompinit wrapper #403

Open
otahontas opened this issue May 24, 2019 · 0 comments
Open

Fixing autocomplete when using Zsh with bashcompinit wrapper #403

otahontas opened this issue May 24, 2019 · 0 comments

Comments

@otahontas
Copy link

Related to Issue #401 : when sourcing tmc-autocomplete and allowing 'bashcompinit' function in zshrc file, tmc autocompletion errors with "tmc _tmc_opts:10: unrecognized modifier `C'".

Apparently "${COMP_WORDS[@]:0:COMP_CWORD}" and
"${COMP_WORDS[@]:0:$COMP_CWORD}" aren't the same in zsh (according to: openshift/rhc#729).

Fixing line 17 in tmc-cli/scripts/autocompletion.sh does seem to fix the issue on zsh and preserves expected behaviour on bash.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant