Skip to content

Instantly share code, notes, and snippets.

@nicolaballotta
nicolaballotta / kubecontext.zsh
Last active February 14, 2023 23:46
Add Kubernetes context to your zsh prompt (for Agnoster theme, but can easily be adapted to different themes)
# INSTALLATION
# - Add the following function to your .oh-my-zsh/themes/agnoster.zsh-theme
# - Call prompt_kubecontext from build_prompt() as showed in the example below
#
#
# build_prompt() {
# prompt_kubecontext
# }