You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
988 B
Bash
37 lines
988 B
Bash
# 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 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 }}
|