danielfoehrKn / kubeswitch

The kubectx for operators.
https://danielfoehrkn.medium.com/the-case-of-kubeswitch-aff4b6a04ae7
Apache License 2.0
832 stars 80 forks source link

compdef: command not found #89

Closed SeanKnight closed 10 months ago

SeanKnight commented 1 year ago

I get the following error when opening a newbash shell:

compdef: command not found

I followed these installation instructions:

https://github.com/danielfoehrKn/kubeswitch/blob/d53d1285ee590db6b3bedaf894b1fd225a130cfb/docs/installation.md?plain=1#L67

A quick web search tells me that compdef is a zsh thing and not available on bash.

These lines are sus too:

https://github.com/danielfoehrKn/kubeswitch/blob/d53d1285ee590db6b3bedaf894b1fd225a130cfb/docs/installation.md?plain=1#L66

https://github.com/danielfoehrKn/kubeswitch/blob/d53d1285ee590db6b3bedaf894b1fd225a130cfb/docs/installation.md?plain=1#L74

The s alias doesn’t work inside of that source.

danielfoehrKn commented 10 months ago

Hi, that should be resolved with this commit . Please re-open if the problem persists.