dotfiles/script/ksc

10 lines
166 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
context=$(kubectl config get-contexts -o name | fzf)
if [ $? -ne 0 ]; then
exit $?
fi
kubectl config use-context "$context"