Added kubectl alias and krew path
This commit is contained in:
parent
03d246e406
commit
b759db9ccb
2 changed files with 7 additions and 0 deletions
3
.local/dotfiles/aliases/kubectl.zsh
Normal file
3
.local/dotfiles/aliases/kubectl.zsh
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
if (( ! ${+commands[kubectl]} )); then
|
||||||
|
alias k=kubectl
|
||||||
|
fi
|
4
.local/dotfiles/environment/kubectl.zsh
Normal file
4
.local/dotfiles/environment/kubectl.zsh
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
if [[ -d "$HOME/.krew/bin" || -n "$KREW_ROOT" ]]; then
|
||||||
|
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue