From f37c45d868a57a9d19c738ce0945cde1781fb3c7 Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Wed, 16 Mar 2022 20:06:58 +0800 Subject: [PATCH] bash: add gcloud sdk to PATH if exists --- .bash_profile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bash_profile b/.bash_profile index 3bdaf23..718e986 100644 --- a/.bash_profile +++ b/.bash_profile @@ -62,4 +62,8 @@ else export ANDROID_SDK_ROOT="$ANDROID_HOME" fi +if [ -d ~/google-cloud-sdk ]; then + PATH="$PATH:$HOME/google-cloud-sdk" +fi + [[ -f ~/.bashrc ]] && . ~/.bashrc -- 2.43.0