chore(zsh): various tweaks to zsh env setup and helpers

This commit is contained in:
2024-01-06 15:10:15 +00:00
parent a304b0bb26
commit 9526b57d38
6 changed files with 46 additions and 16 deletions

View File

@@ -23,11 +23,13 @@ if command-exists kubectl; then
}
_setup-kubectl-completion
switch() {
unset -f switch
source "$(brew --prefix switch)/switch.sh"
switch "$@"
}
if command-exists brew-prefix; then
switch() {
unset -f switch
source "$(brew-prefix switch)/switch.sh"
switch "$@"
}
fi
export KREW_ROOT="$HOME/.krew"
path_append "${KREW_ROOT}/bin"