From 08e0456290877f7a0e7ceb0ebd8111851bccac14 Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Thu, 11 Jul 2024 11:32:33 +0300 Subject: [PATCH] Cleanup zshrc k8s krew config --- .zshrc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.zshrc b/.zshrc index 8335b8d..3df3665 100644 --- a/.zshrc +++ b/.zshrc @@ -251,19 +251,27 @@ else ruby_gem_user_dir='' fi +# kubectl plugin manager Krew +export KREW_ROOT="~/.config/krew" +if [[ -d "${KREW_ROOT}/bin" ]]; then + krew_bin_path="${KREW_ROOT}/bin" +else + krew_bin_path='' +fi + + # ZSH allows $PATH to be used as an array path=( ~/.bin ~/.local/bin + ${ruby_gem_user_dir} + ${krew_bin_path} /usr/bin/site_perl /usr/bin/vendor_perl /usr/bin/core_perl - "${ruby_gem_user_dir}" $path ) -export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH" - HISTSIZE=100000 SAVEHIST=100000