danielfoehrKn / kubeswitch

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

Homebrew linux install "switch command not found" #102

Closed cdenneen closed 6 months ago

cdenneen commented 11 months ago

So followed the Homebrew installation instructions but once the following is run from bashrc it doesn't work (or if manually running it):

$ switcher init bash
Error: context with name "init" not found
context with name "init" not found

$ bash --version
bash --version
GNU bash, version 5.2.21(1)-release (x86_64-pc-linux-gnu)
danielfoehrKn commented 11 months ago

Hi, please use the command switch which is a sourced shell function.

cdenneen commented 11 months ago

Sorry had to downgrade to 0.7.2 since 0.8.x isn’t supported on AL2 (glibc). Downgrading changed the way to source the function.