kubermatic / fubectl

Reduces repetitive interactions with kubectl
Apache License 2.0
857 stars 63 forks source link

Installation on macOS Catalina with oh-my-zsh #57

Open vedmichv opened 4 years ago

vedmichv commented 4 years ago

All prerequsite installed but during the installation I see the following output:

[ -f /Users/1/apps/fubectl/fubectl.source ] && source /Users/1/apps/fubectl/fubectl.source
/Users/1/apps/fubectl/fubectl.source:90: defining function based on alias `ked'
/Users/1/apps/fubectl/fubectl.source:90: parse error near `()'
erdii commented 4 years ago

you need to disable oh-my-zsh's other kubectl plugin

saahildhulla commented 3 years ago

how do you do that?

erdii commented 3 years ago

in your ~/.zshrc: plugins=(common-aliases systemd fzf direnv kubectl docker aws archlinux)

>> kubectl << this is the 'official' kubectl plugin for oh-my-zsh

you need to remove this from the plugins list.

luisdavim commented 3 years ago

this https://github.com/kubermatic/fubectl/pull/86 should avoid the error messages if the user wishes to keep their custom aliases on top of what's provided by fubectl.

When using the keyword function, the name of the function doesn't get expanded even if there is an alias with the same name.