From 08963eef2ddd3c58fbc881194232f5f7b72b3266 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Thu, 15 Aug 2024 05:20:36 +0100 Subject: [PATCH] chore(zsh): cleanup --- zshenv | 6 ++++++ zshrc | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/zshenv b/zshenv index f67177f..9195099 100644 --- a/zshenv +++ b/zshenv @@ -30,6 +30,12 @@ export FAST_REFRESH=false # k8s export KUBECONFIG=$HOME/.kube/config:$HOME/.kube/config-do +if [ "$(uname -s)" = "Darwin" ]; then + # brew + export HOMEBREW_NO_INSTALL_CLEANUP=1 + export HOMEBREW_NO_AUTO_UPDATE=1 +fi + # See `installdotfiles`: if [ -f "$ZDOTDIR/.zshsecrets" ]; then source "$ZDOTDIR/.zshsecrets" diff --git a/zshrc b/zshrc index 7e9685b..f3341e3 100644 --- a/zshrc +++ b/zshrc @@ -166,6 +166,16 @@ export PATH=$HOME/bin:$PATH export PATH=$HOME/.local/bin:$PATH export PATH=$HOME/script:$PATH +if [ "$(uname -s)" = "Darwin" ]; then + if [ -d /opt/homebrew/bin ]; then + export PATH=/opt/homebrew/bin:$PATH + fi + if [ -d /opt/homebrew/opt/curl/bin ]; then + export PATH="/opt/homebrew/opt/curl/bin:$PATH" + fi + export PATH="/Applications/Postgres.app/Contents/Versions/16/bin:$PATH" +fi + export VIMPLUGIN="$HOME/.vim/pack/git-plugins" # source local zshrc, if it exists (not: not in git)