config/shell: add rvm

This commit is contained in:
xeruf 2022-09-15 11:58:07 +02:00
parent ec58c138cc
commit c5fcb1d3a8
2 changed files with 5 additions and 1 deletions

View File

@ -126,3 +126,7 @@ cat "$_stackspin_cluster_cache" 2>/dev/null |
while read cluster; do stack select "$cluster"; done
test "$PWD" = "$HOME" && cde "$PROJECTS/ampache-docker"
test -f "$HOME/.rvm/scripts/rvm" &&
source "$HOME/.rvm/scripts/rvm" && # Load RVM into a shell session *as a function*
rvm use 3.0

View File

@ -73,7 +73,7 @@ mkdir -p "$XDG_STATE_HOME/zsh"
# environment
BIN="$HOME/.local/bin"
export PATH="$BIN/scripts:$BIN:$RBENV_ROOT/shims:$PATH:$XDG_CONFIG_HOME/emacs/bin:$N_PREFIX:$GOPATH/bin:$XDG_DATA_HOME/gem/ruby/3.0.0/bin:$ANDROID_SDK_ROOT/platform-tools:$CARGO_HOME/bin:$KREW_ROOT/bin"
export PATH="$BIN/scripts:$BIN:$RBENV_ROOT/shims:$PATH:$XDG_CONFIG_HOME/emacs/bin:$N_PREFIX:$GOPATH/bin:$ANDROID_SDK_ROOT/platform-tools:$CARGO_HOME/bin:$KREW_ROOT/bin:$XDG_DATA_HOME/gem/ruby/3.0.0/bin:$HOME/.rvm/bin"
export ALTERNATE_EDITOR="$(
if which nvim >/dev/null
then echo nvim