From b8a787c74ea8a0b85d8876e5af4c2848e1b44b5b Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Fri, 3 Jan 2025 14:46:35 -0800 Subject: [PATCH] Use homebrew postgres if present --- dot_config/profile/profile.d/base.sh.tmpl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dot_config/profile/profile.d/base.sh.tmpl b/dot_config/profile/profile.d/base.sh.tmpl index 2e0ce20..4521a20 100644 --- a/dot_config/profile/profile.d/base.sh.tmpl +++ b/dot_config/profile/profile.d/base.sh.tmpl @@ -19,6 +19,13 @@ if [ -d /usr/local/opt/mysql-client/bin ] ; then fi #{{- end }} +#{{- if stat "/usr/local/Cellar/postgresql@14/14.15/bin" }} +#{{/* if postgres client is installed from homebrew */}} +if [ -d /usr/local/Cellar/postgresql@14/14.15/bin ] ; then + PATH="/usr/local/Cellar/postgresql@14/14.15/bin:${PATH}" +fi +#{{- end }} + #{{- if stat "{{ .chezmoi.homeDir }}/google-cloud-sdk/bin" }} if [ -d "{{ .chezmoi.homeDir }}/google-cloud-sdk/bin" ] ; then PATH="${PATH}:{{ .chezmoi.homeDir }}/google-cloud-sdk/bin"