home/zsh: Added indicator if we are in a SSH session

This commit is contained in:
fleaz 2024-01-16 15:31:31 +01:00
parent 69eae84585
commit d36f1fd26a
No known key found for this signature in database
GPG key ID: AED15F8FDD04D083

View file

@ -18,6 +18,14 @@
"beep" = "paplay /usr/share/sounds/freedesktop/stereo/complete.oga"; # play "ding" for long running jobs
};
initExtra = ''
autoload -U colors && colors
function is_ssh(){
if [ ! -z $SSH_CLIENT ]; then
echo %{$fg[red]%}SSH-Session on $(hostname -s)%{$reset_color%}
fi
}
RPS1='$(is_ssh) $(kubectx_prompt_info)'
export EDITOR="nvim";
export PATH="$PATH:$HOME/.krew/bin:$HOME/bin:$HOME/go/bin";
source <(kubectl completion zsh)