From c69f93f9a8b2795ffd4465451c70c38ed4f5a8b3 Mon Sep 17 00:00:00 2001 From: Julian Scharrenbach Date: Thu, 30 Apr 2026 13:02:01 +0200 Subject: [PATCH] add .kubectx to PATH if present --- .bashrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index fd48a9f..26e65db 100644 --- a/.bashrc +++ b/.bashrc @@ -15,6 +15,11 @@ if [ -d ~/.local/bin ] ; then export PATH fi +if [ -d ~/.kubectx ] ; then + PATH="$HOME/.kubectx:${PATH}" + export PATH +fi + # do the same with MANPATH if [ -d $HOME/man ]; then MANPATH=$HOME/man:"${MANPATH}" @@ -49,7 +54,7 @@ shopt -s cmdhist shopt -s cdspell shopt -s hostcomplete -# If not running interactively, don't do any more +# If not running interactively don't do any more [ -z "$PS1" ] && return ###############################################################################