Skip to content

Commit 45dd9e5

Browse files
committed
Add kubectl alias to zshrc file
1 parent 679e3cf commit 45dd9e5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.zshrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ export WASMER_DIR="$HOME/.wasmer"
6565

6666
# k8s
6767
if _cmd_exists kubectl; then source <(kubectl completion zsh); fi
68+
# krew
69+
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
6870

6971
# solana
7072
export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"
@@ -157,3 +159,7 @@ alias rustdesk="/Applications/RustDesk.app/Contents/MacOS/rustdesk"
157159

158160
# shortcut
159161
alias relogin='exec $SHELL -l'
162+
if _cmd_exists kubectl; then
163+
alias k="kubectl"
164+
fi
165+

0 commit comments

Comments
 (0)