dotfiles

My configuration files
git clone git://git.finwo.net/misc/dotfiles
Log | Files | Refs

commit c63f73de3a406f25a3739a80c06d90f43149b96e
parent dd6f8621623d03a5de7fcdee2a5155a8fc9f2886
Author: finwo <finwo@pm.me>
Date:   Fri,  3 Dec 2021 11:45:42 +0100

Adde compatibility layer for gcloud sdk

Diffstat:
Mzsh/home/.zshrc | 16+++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/zsh/home/.zshrc b/zsh/home/.zshrc @@ -90,11 +90,11 @@ if [[ $TERM == screen* ]]; then export SCREEN=yes fi -# TERM -# nvim has issues with xterm-256color -if [[ $TERM == xterm-256color ]]; then - export TERM=xterm-color -fi +# # TERM +# # nvim has issues with xterm-256color +# if [[ $TERM == xterm-256color ]]; then +# export TERM=xterm-color +# fi # Auto-cd setopt autocd @@ -124,6 +124,12 @@ PROMPT_COMMAND= # }}} # Google Cloud SDK {{{ +# Gcloud sdk doesn't support python 3.10 yet +# Using python2 as compatibility layer +if [ -d '/home/finwo/google-cloud-sdk' ] || [ -d '/home/finwo/Downloads/google-cloud-sdk' ]; then + export CLOUDSDK_PYTHON=$(which python2) +fi + # The next line updates PATH for the Google Cloud SDK. if [ -f '/home/finwo/google-cloud-sdk/path.zsh.inc' ]; then . '/home/finwo/google-cloud-sdk/path.zsh.inc'