dotfiles/script/ksc

10 lines
156 B
Bash
Executable File

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