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

ohmyzsh/kubectl: command not found: complete #206

Closed
uhthomas opened this issue Feb 1, 2022 · 5 comments
Closed

ohmyzsh/kubectl: command not found: complete #206

uhthomas opened this issue Feb 1, 2022 · 5 comments

Comments

@uhthomas
Copy link

uhthomas commented Feb 1, 2022

Load the ohmyzsh kubectl plugin in ~/.zshrc.

z4h load -c ohmyzsh/ohmyzsh/plugins/kubectl

Update zsh4humans.

❯ z4h update
z4h: fetching z4h.zsh
z4h: updating zsh4humans
z4h: updating systemd completions
z4h: updating zsh-history-substring-search
z4h: updating zsh-autosuggestions
z4h: updating zsh-completions
z4h: updating zsh-syntax-highlighting
z4h: updating terminfo
z4h: updating fzf
z4h: updating fzf binary
z4h: updating tmux
z4h: updating ohmyzsh/ohmyzsh
z4h: updating powerlevel10k
z4h: updating gitstatus binary
z4h: initializing zsh
/proc/self/fd/14:12290: command not found: complete
z4h: update successful
z4h: restarting zsh
@romkatv
Copy link
Owner

romkatv commented Feb 1, 2022

What are you trying to achieve by loading ohmyzsh/ohmyzsh/plugins/kubectl?

@uhthomas
Copy link
Author

uhthomas commented Feb 1, 2022

Just aliases and completions.

@romkatv
Copy link
Owner

romkatv commented Feb 1, 2022

Completions should just work. Do they not?

@romkatv
Copy link
Owner

romkatv commented Feb 1, 2022

If you haven't seen this yet, might be of interest to you: #35 (comment)

@romkatv
Copy link
Owner

romkatv commented Feb 2, 2022

Completions should just work. Do they not?

To expand on this, my suggestion is to define the aliases you want explicitly. It unlikely that you want all aliases from ohmyzsh/ohmyzsh/plugins/kubectl. Completion should just work.

@romkatv romkatv closed this as completed Feb 16, 2022
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

2 participants