Added checks for if-exists for cargo and linuxbrew

This commit is contained in:
Eric Renfro 2022-06-26 09:51:44 -04:00
parent 036df32b2f
commit 1d98e95dca
2 changed files with 7 additions and 2 deletions

View file

@ -7,4 +7,7 @@
: ${ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim} : ${ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim}
# }}} End configuration added by Zim install # }}} End configuration added by Zim install
. "$HOME/.cargo/env" if [[ -d "$HOME/.cargo" ]]; then
. "$HOME/.cargo/env"
fi

4
.zshrc
View file

@ -123,7 +123,9 @@ bindkey -M vicmd 'j' history-substring-search-down
# }}} End configuration added by Zim install # }}} End configuration added by Zim install
# Homebrew # Homebrew
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" if [[ -d "/home/linuxbrew/.linuxbrew" ]]; then
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
fi
# Set Path: # Set Path:
typeset -U PATH typeset -U PATH