diff --git a/bin/kubectl-toggle_ctx b/bin/kubectl-toggle_ctx deleted file mode 100755 index d6172fe0..00000000 --- a/bin/kubectl-toggle_ctx +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - - -if test -f $HOME/.kubectl-hide-current-ctx; then - rm $HOME/.kubectl-hide-current-ctx -else - touch $HOME/.kubectl-hide-current-ctx -fi diff --git a/zsh/config.d/zshrc b/zsh/config.d/zshrc index 8c7dad95..39c1be4d 100644 --- a/zsh/config.d/zshrc +++ b/zsh/config.d/zshrc @@ -126,7 +126,7 @@ export PYTHONSYSTEMPATH=$(which python3) # NOTE; Utilities function current_context () { - if test -f ~/.kubectl-hide-current-ctx; then + if test -f $XDG_CONFIG_HOME/kubectl-toggle-ctx/hide; then return fi