dotfiles/script/ksc

10 lines
156 B
Plaintext
Raw Normal View History

2022-04-17 19:28:35 +00:00
#!/usr/bin/env bash
2023-10-07 08:43:32 +00:00
2022-04-17 19:28:35 +00:00
set -euo pipefail
2023-10-07 08:43:32 +00:00
if ! context=$(kubectl config get-contexts -o name | fzf); then
2022-06-09 03:49:10 +00:00
exit $?
2022-04-17 19:28:35 +00:00
fi
kubectl config use-context "$context"