From dd5d566080855e1e04e313185093bcf655b660ae Mon Sep 17 00:00:00 2001 From: Jim Richter Date: Thu, 21 Jan 2021 12:39:57 +0000 Subject: [PATCH] feat: add optional loading of gcloud autocomplete --- configs/.zshrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configs/.zshrc b/configs/.zshrc index d3ad850..9f51bdc 100644 --- a/configs/.zshrc +++ b/configs/.zshrc @@ -26,6 +26,7 @@ source $HOME/.dotfiles/configs/zsh/aliases.sh ## LOADING PROGRAMS export PATH="$PATH:$HOME/.yarn/bin" export PATH="$PATH:$HOME/.local/bin" +export PATH="$PATH:$HOME/bin" ## GO STUFF export GOROOT="/usr/local/bin/go" @@ -40,7 +41,6 @@ if [ -s "$HOME/.pyenv" ]; then eval "$(pyenv init -)" fi - #Java version manager export SDKMAN_DIR="$HOME/.sdkman" [[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh" @@ -54,3 +54,9 @@ export SDKMAN_DIR="$HOME/.sdkman" # Node Version manager export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" + +# The next line updates PATH for the Google Cloud SDK. +if [ -f '/home/coder/downloads/google-cloud-sdk/path.zsh.inc' ]; then . '/home/coder/downloads/google-cloud-sdk/path.zsh.inc'; fi + +# The next line enables shell command completion for gcloud. +if [ -f '/home/coder/downloads/google-cloud-sdk/completion.zsh.inc' ]; then . '/home/coder/downloads/google-cloud-sdk/completion.zsh.inc'; fi