diff --git a/zsh/config.d/zshrc b/zsh/config.d/zshrc index 6a8bd0a7..2a88ef86 100644 --- a/zsh/config.d/zshrc +++ b/zsh/config.d/zshrc @@ -148,16 +148,20 @@ if command -v brew > /dev/null; then export HOMEBREW_NO_AUTO_UPDATE=1 eval $(brew shellenv) - if [ "$(brew --prefix xz 2>/dev/null)" != "" ]; then + if [ -d "$HOMEBREW_ROOT/opt/xz" ]; then export CONFIGURE_OPTS="--enable-shared" export CPPFLAGS="-I$(brew --prefix xz)/include" export LDFLAGS="-L$(brew --prefix xz)/lib" fi - if [ "$(brew --prefix openjdk 2>/dev/null)" != "" ]; then + if [ -d "$HOMEBREW_ROOT/opt/openjdk" ]; then export PATH="/opt/homebrew/opt/openjdk/bin:$PATH" export CPPFLAGS="$CPPFLAGS:-I/opt/homebrew/opt/openjdk/include" fi + + if [ -d "$HOMEBREW_ROOT/opt/libpq/bin" ]; then + export PATH="/opt/homebrew/opt/libpq/bin:$PATH" + fi fi export PYTHONSYSTEMPATH=$(which python3) @@ -238,8 +242,8 @@ if command -v fzf > /dev/null; then source <(fzf --zsh) fi -# NOTE; atuin should be loaded after fzf since both modifies ctrl-r behavior. if command -v atuin > /dev/null; then + # NOTE; atuin should be loaded after fzf since both modifies ctrl-r behavior. eval "$(atuin init zsh --disable-up-arrow)" fi