Skip to content

Commit

Permalink
fix(fish): fix 'rm' command unalias
Browse files Browse the repository at this point in the history
Using backslash in fish to prevent alias expansion does not work (`fish: Unknown command: \rm`).
Instead you need to use `command`: fish-shell/fish-shell#5076 (comment)
  • Loading branch information
croissong committed Apr 22, 2024
1 parent cbda1d9 commit 31456c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/switcher/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function kubeswitch
set -l switchTmpDirectory "$HOME/.kube/.switch_tmp/config"
if test -n "$KUBECONFIG"; and string match -q "*$switchTmpDirectory*" -- "$KUBECONFIG"
\rm -f "$KUBECONFIG"
command rm -f "$KUBECONFIG"
end
set -gx KUBECONFIG "$KUBECONFIG_PATH"
Expand Down

0 comments on commit 31456c2

Please sign in to comment.