chore(zsh): cleanup

This commit is contained in:
Rob Watson 2024-08-15 05:20:36 +01:00
parent b1fd7b3ac6
commit 08963eef2d
2 changed files with 16 additions and 0 deletions

6
zshenv
View File

@ -30,6 +30,12 @@ export FAST_REFRESH=false
# k8s # k8s
export KUBECONFIG=$HOME/.kube/config:$HOME/.kube/config-do 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`: # See `installdotfiles`:
if [ -f "$ZDOTDIR/.zshsecrets" ]; then if [ -f "$ZDOTDIR/.zshsecrets" ]; then
source "$ZDOTDIR/.zshsecrets" source "$ZDOTDIR/.zshsecrets"

10
zshrc
View File

@ -166,6 +166,16 @@ export PATH=$HOME/bin:$PATH
export PATH=$HOME/.local/bin:$PATH export PATH=$HOME/.local/bin:$PATH
export PATH=$HOME/script:$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" export VIMPLUGIN="$HOME/.vim/pack/git-plugins"
# source local zshrc, if it exists (not: not in git) # source local zshrc, if it exists (not: not in git)