diff --git a/zsh/environment b/zsh/environment index fa2bdfb..e15c7f1 100644 --- a/zsh/environment +++ b/zsh/environment @@ -3,10 +3,13 @@ export LANG=en_US.UTF-8 export GOPATH="$HOME/go" export PATH="./node_modules/.bin:$HOME/.cargo/bin:$HOME/bin:$HOME/.local/bin:$GOPATH/bin:/opt/homebrew/bin:/usr/local/sbin:$PATH" -export CPATH="$CPATH:$(brew --prefix)/include" -export LIBRARY_PATH="$LIBRARY_PATH:$(brew --prefix)/lib" export PIPENV_VENV_IN_PROJECT=true +if exists brew; then + export CPATH="$CPATH:$(brew --prefix)/include" + export LIBRARY_PATH="$LIBRARY_PATH:$(brew --prefix)/lib" +fi + if exists vim; then export EDITOR=$(command -v vim) fi