az-kube-switch#
Stop doing az logout, az login and kubectl config use-context all the time. Pick your Azure Subscription and kubectl context all at once, with fuzzy search.

Install#
One-Line Install (Recommended)#
Run the following command to automatically verify requirements, install fzf (via apt if missing and available), install akswitch to /opt/akswitch, and configure your shell PATH:
bash <(curl -fsSL https://tangled.org/chrismin13.com/akswitch/raw/main/install.sh)
After the script finishes, reload your shell configuration:
source ~/.bashrc
# Or if you are using zsh:
source ~/.zshrc
Manual Install#
If you prefer to install it manually:
- Ensure all requirements are met:
# On Ubuntu/Debian (for fzf): sudo apt update sudo apt install -y fzf # Ensure az and kubectl are also installed. - Clone this repository or download the
akswitchscript. - Add a wrapper function to your shell configuration (e.g.
~/.bashrc):akswitch() { /path/to/cloned/akswitch "$@" } - Reload your configuration:
source ~/.bashrc
Usage#
akswitch