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

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant