Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
whitw
2 years agoNew Contributor
[ZSH] Plugin aliases break completion for the command run by the plugin
I have ZSH set up to introspect aliases and run plugin functions based on what the alias is calling.
This means that an alias set up for gh : alias gh='op plugin run -- gh' will actually trigge...
Tom_Harrison
2 years agoOccasional Contributor
Hey Jack_P_1P -- I just realized I had the same issue as whitw with the 1p plugin aliases breaking zsh completion (and gh). His solution has some serious shell-foo, and I have big respect. But I think this is a bug, and it's pretty simple.
An alias for a command that has completions breaks the completions.
So the op alias for gh
or aws
breaks their completions. This is seriously painful for aws :-)
Still, I tried whitw's hack above and it worked for me. I think y'all at 1P are going to need to get this worked out as more plugins are developed. Looks like the solution above handles the general case.