Convert ruby from stow to chezmoi

main
Buddy Sandidge 2 years ago
parent be9544482c
commit a670c6271c

@ -1,3 +1,4 @@
{{ if lookPath "rbenv" -}}
# shellcheck shell=bash # shellcheck shell=bash
if [ "${RBENV_SHELL}" = "" ]; then if [ "${RBENV_SHELL}" = "" ]; then
@ -5,10 +6,12 @@ if [ "${RBENV_SHELL}" = "" ]; then
eval "$(rbenv init -)" eval "$(rbenv init -)"
fi fi
fi fi
{{ end }}
{{- if lookPath "rvm" -}}
if [[ -d "${HOME}/.rvm/bin" ]]; then if [[ -d "${HOME}/.rvm/bin" ]]; then
# shellcheck disable=SC2076 # shellcheck disable=SC2076
if [[ ! "${PATH}" =~ "${HOME}/.rvm/bin" ]]; then if [[ ! "${PATH}" =~ "${HOME}/.rvm/bin" ]]; then
export PATH="$PATH:$HOME/.rvm/bin" export PATH="$PATH:$HOME/.rvm/bin"
fi fi
fi fi
{{- end }}

@ -1,3 +1,4 @@
{{ if lookPath "rbenv" -}}
# shellcheck shell=sh # shellcheck shell=sh
if [ "${RBENV_SHELL}" = "" ]; then if [ "${RBENV_SHELL}" = "" ]; then
@ -5,7 +6,9 @@ if [ "${RBENV_SHELL}" = "" ]; then
eval "$(rbenv init -)" eval "$(rbenv init -)"
fi fi
fi fi
{{- end }}
{{ if lookPath "rvm" -}}
if [ -d "${HOME}/.rvm/bin" ]; then if [ -d "${HOME}/.rvm/bin" ]; then
case "${PATH}" in case "${PATH}" in
*"$HOME/.rvm/bin"*) ;; *"$HOME/.rvm/bin"*) ;;
@ -20,3 +23,4 @@ if [ "$(ps -p $$ -ocomm=)" = sh ]; then
. "$HOME/.rvm/scripts/rvm" . "$HOME/.rvm/scripts/rvm"
fi fi
fi fi
{{- end }}

@ -1,11 +1,15 @@
{{ if lookPath "rbenv" -}}
if [ "${RBENV_SHELL}" = "" ]; then if [ "${RBENV_SHELL}" = "" ]; then
if command -v rbenv >/dev/null 2>&1 ; then if command -v rbenv >/dev/null 2>&1 ; then
eval "$(rbenv init -)" eval "$(rbenv init -)"
fi fi
fi fi
{{- end }}
{{ if lookPath "rvm" -}}
if [[ -d "${HOME}/.rvm/bin" ]]; then if [[ -d "${HOME}/.rvm/bin" ]]; then
if [[ ! "${PATH}" =~ "${HOME}/.rvm/bin" ]]; then if [[ ! "${PATH}" =~ "${HOME}/.rvm/bin" ]]; then
export PATH="$PATH:$HOME/.rvm/bin" export PATH="$PATH:$HOME/.rvm/bin"
fi fi
fi fi
{{- end }}
Loading…
Cancel
Save