]> src.twobees.de Git - dotfiles.git/blobdiff - stow/oh-my-zsh/.oh-my-zsh/plugins/kubectx/kubectx.plugin.zsh
rm oh-my-zsh
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / kubectx / kubectx.plugin.zsh
diff --git a/stow/oh-my-zsh/.oh-my-zsh/plugins/kubectx/kubectx.plugin.zsh b/stow/oh-my-zsh/.oh-my-zsh/plugins/kubectx/kubectx.plugin.zsh
deleted file mode 100644 (file)
index 6096fee..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-typeset -g -A kubectx_mapping
-
-function kubectx_prompt_info() {
-  (( $+commands[kubectl] )) || return
-
-  local current_ctx=$(kubectl config current-context 2> /dev/null)
-
-  [[ -n "$current_ctx" ]] || return
-
-  # use value in associative array if it exists
-  # otherwise fall back to the context name
-  echo "${kubectx_mapping[$current_ctx]:-${current_ctx:gs/%/%%}}"
-}