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
Facing issue with simple bash alias: '_zsh_highlight_main__type:13: job table full or recursion limit exceeded' #943
Comments
Hi, I have no time to debug this right now, but you should be able to workaround by changing kubectl to ${:-kubectl} within the alias expansions (let's say both instances to be on the safe side).
Also, what version of z-sy-h and zsh are you running? Asking to see whether you have this https://github.com/zsh-users/zsh-syntax-highlighting/blob/e0165eaa730dd0fa321a6a6de74f092fe87630b0/highlighters/main/main-highlighter.zsh#L706-L707
… `alias kubectl="kubectl --context \${KUBE_CONTEXT:-\$(command kubectl config current-context)}"`
|
Hello @danielshahaf and thanks for your answer! I'm sorry but i'm not sure to understand the proposed workaround, can you give me a little bit more details please? I'm using the following version of packages: |
Try changing this:
alias kubectl="kubectl --context \${KUBE_CONTEXT:-\$(command kubectl config current-context)}"
to this:
alias kubectl="\${:-kubectl} --context \${KUBE_CONTEXT:-\$(command \${:-kubectl} config current-context)}"
Excuse brevity.
|
No worries! Many thanks for the workaround, which works perfectly. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I have defined the following alias in my ~/.zshrc
alias kubectl="kubectl --context \${KUBE_CONTEXT:-\$(command kubectl config current-context)}"
and after executing the following command line:
the following error message appears as soon as I have finish to write kubectl in my prompt
Do you have any idea of the origin of this issue?
Thanks in advance!
The text was updated successfully, but these errors were encountered: