Added checks for if-exists for cargo and linuxbrew
This commit is contained in:
parent
721eb8cbd2
commit
7a872d7bb3
2 changed files with 7 additions and 2 deletions
3
.zshenv
3
.zshenv
|
@ -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
|
||||||
|
|
||||||
|
if [[ -d "$HOME/.cargo" ]]; then
|
||||||
. "$HOME/.cargo/env"
|
. "$HOME/.cargo/env"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
2
.zshrc
2
.zshrc
|
@ -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
|
||||||
|
if [[ -d "/home/linuxbrew/.linuxbrew" ]]; then
|
||||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||||
|
fi
|
||||||
|
|
||||||
# Set Path:
|
# Set Path:
|
||||||
typeset -U PATH
|
typeset -U PATH
|
||||||
|
|
Loading…
Reference in a new issue