|
|
|
# chezmoi:template:left-delimiter=#{{
|
|
|
|
#{{- /* vim: set filetype=sh: */ -}}
|
|
|
|
#{{- if lookPath "go" -}}
|
|
|
|
#{{- if stat "/usr/local/apps/golang/current/bin" }}
|
|
|
|
if [ -d /usr/local/apps/golang/current/bin ] && ! echo "${PATH}" | grep -q /usr/local/apps/golang/current/bin ; then
|
|
|
|
PATH="/usr/local/apps/golang/current/bin:${PATH}"
|
|
|
|
fi
|
|
|
|
#{{- end }}
|
|
|
|
|
|
|
|
if [ -d "${HOME}/go/bin" ] && ! echo "$PATH" | grep -q "${HOME}/go/bin" ; then
|
|
|
|
PATH="${PATH}:${HOME}/go/bin"
|
|
|
|
fi
|
|
|
|
#{{- end }}
|
|
|
|
|
|
|
|
#{{- if stat "/opt/homebrew/bin" }}
|
|
|
|
if [ -d /opt/homebrew/bin ] ; then
|
|
|
|
PATH=/opt/homebrew/bin:${PATH}
|
|
|
|
fi
|
|
|
|
#{{- end }}
|
|
|
|
|
|
|
|
#{{- if stat "/usr/local/opt/mysql-client/bin" }}
|
|
|
|
#{{/* if mysql client is installed from homebrew */}}
|
|
|
|
if [ -d /usr/local/opt/mysql-client/bin ] ; then
|
|
|
|
PATH="/usr/local/opt/mysql-client/bin:${PATH}"
|
|
|
|
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"
|
|
|
|
fi
|
|
|
|
#{{- end }}
|
|
|
|
|
|
|
|
#{{- if lookPath "cargo" }}
|
|
|
|
if [ -f "${HOME}/.cargo/env" ]; then
|
|
|
|
. "${HOME}/.cargo/env"
|
|
|
|
fi
|
|
|
|
#{{- end }}
|
|
|
|
|
|
|
|
#{{- if lookPath "rvm" }}
|
|
|
|
if [ -d "${HOME}/.rvm/bin" ]; then
|
|
|
|
case "${PATH}" in
|
|
|
|
*"$HOME/.rvm/bin"*) ;;
|
|
|
|
*) export PATH="$PATH:$HOME/.rvm/bin" ;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$(ps -p $$ -ocomm=)" = sh ]; then
|
|
|
|
if [ -f "$HOME/.rvm/scripts/rvm" ]; then
|
|
|
|
# Load RVM into a shell session *as a function*
|
|
|
|
# shellcheck disable=SC1091
|
|
|
|
. "$HOME/.rvm/scripts/rvm"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
#{{- end }}
|