Convert ruby from stow to chezmoi
This commit is contained in:
parent
be9544482c
commit
a670c6271c
@ -1,3 +1,4 @@
|
||||
{{ if lookPath "rbenv" -}}
|
||||
# shellcheck shell=bash
|
||||
|
||||
if [ "${RBENV_SHELL}" = "" ]; then
|
||||
@ -5,10 +6,12 @@ if [ "${RBENV_SHELL}" = "" ]; then
|
||||
eval "$(rbenv init -)"
|
||||
fi
|
||||
fi
|
||||
|
||||
{{ end }}
|
||||
{{- if lookPath "rvm" -}}
|
||||
if [[ -d "${HOME}/.rvm/bin" ]]; then
|
||||
# shellcheck disable=SC2076
|
||||
if [[ ! "${PATH}" =~ "${HOME}/.rvm/bin" ]]; then
|
||||
export PATH="$PATH:$HOME/.rvm/bin"
|
||||
fi
|
||||
fi
|
||||
{{- end }}
|
||||
@ -1,3 +1,4 @@
|
||||
{{ if lookPath "rbenv" -}}
|
||||
# shellcheck shell=sh
|
||||
|
||||
if [ "${RBENV_SHELL}" = "" ]; then
|
||||
@ -5,7 +6,9 @@ if [ "${RBENV_SHELL}" = "" ]; then
|
||||
eval "$(rbenv init -)"
|
||||
fi
|
||||
fi
|
||||
{{- end }}
|
||||
|
||||
{{ if lookPath "rvm" -}}
|
||||
if [ -d "${HOME}/.rvm/bin" ]; then
|
||||
case "${PATH}" in
|
||||
*"$HOME/.rvm/bin"*) ;;
|
||||
@ -20,3 +23,4 @@ if [ "$(ps -p $$ -ocomm=)" = sh ]; then
|
||||
. "$HOME/.rvm/scripts/rvm"
|
||||
fi
|
||||
fi
|
||||
{{- end }}
|
||||
@ -1,11 +1,15 @@
|
||||
{{ if lookPath "rbenv" -}}
|
||||
if [ "${RBENV_SHELL}" = "" ]; then
|
||||
if command -v rbenv >/dev/null 2>&1 ; then
|
||||
eval "$(rbenv init -)"
|
||||
fi
|
||||
fi
|
||||
{{- end }}
|
||||
|
||||
{{ if lookPath "rvm" -}}
|
||||
if [[ -d "${HOME}/.rvm/bin" ]]; then
|
||||
if [[ ! "${PATH}" =~ "${HOME}/.rvm/bin" ]]; then
|
||||
export PATH="$PATH:$HOME/.rvm/bin"
|
||||
fi
|
||||
fi
|
||||
{{- end }}
|
||||
0
ruby/.local/bin/install-rvm → dot_local/bin/executable_install-rvm
Executable file → Normal file
0
ruby/.local/bin/install-rvm → dot_local/bin/executable_install-rvm
Executable file → Normal file
Loading…
Reference in New Issue
Block a user