Add script and update ksc
This commit is contained in:
parent
a50eb88b88
commit
164881d1ec
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
context=$(kubectl config get-contexts -o name | fzf)
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
kubectl config use-context "$context"
|
3
zshrc
3
zshrc
|
@ -79,7 +79,8 @@ alias gta="go test ./..."
|
|||
alias h="helm"
|
||||
alias ji="jira -b"
|
||||
alias k="kubectl"
|
||||
alias ksc='kubectl config use-context $(kubectl config get-contexts -o name | fzf)'
|
||||
alias kcc="kubectl config current-context"
|
||||
alias kp="kubectl get pods -o wide"
|
||||
alias k9="kill -9"
|
||||
alias ll="exa -l --group-directories-first --git"
|
||||
alias ls="exa --color=auto"
|
||||
|
|
Loading…
Reference in New Issue