Skip to content

Instantly share code, notes, and snippets.

View FutureGadget's full-sized avatar

danwoo FutureGadget

View GitHub Profile
@FutureGadget
FutureGadget / gist:05f5d0f04c701284b65fdbddaa374bed
Created May 3, 2023 12:35
[Zsh] How to show a select menu to switch between Kubernetes contexts
# Put the uc function in the ~/.zshrc file.
# The `uc` function creates a menu that shows available kubernetes contexts you can choose from.
# usage:
# uc
# Available contexts:
# 1) prod
# 2) stg
# > 1
# Switched to context: prod