kubeswitch icon indicating copy to clipboard operation
kubeswitch copied to clipboard

kubeswitch command in fish shell leads to error since v. 0.9.0

Open LoHertel opened this issue 1 year ago • 0 comments

Since kubeswitch 0.9.0, the switch script for fish creates the following error when calling kubeswitch / s.

m: command not found
- (line 61):
          \rm -f "$KUBECONFIG"
          ^~^
in function 'kubeswitch'
        called on line 44 of file ~/.config/fish/config.fish
in function 's'

With commit 89bf212, the rm command is called directly inside the switch functions for bash, zsh and fish and is ignoring possible aliases with the same name.

In fish the correct way to call a command and ignore functions (aliases) is command rm instead of \rm.

Edit:

I have realized, that the error was fixed with PR #121 already, but not released yet.

The same error still exists in the file hack/switch/switch.fish as well.

LoHertel avatar May 22 '24 19:05 LoHertel