use rvm to run sup with an old ruby

This commit is contained in:
Felix Van der Jeugt 2017-02-09 21:08:23 +01:00
parent e3977e2756
commit b1a9bcba72
No known key found for this signature in database
GPG Key ID: 58B209295023754D
2 changed files with 4 additions and 2 deletions

2
local/bin/sup Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec rvm 2.3.3 do sup

View File

@ -9,10 +9,10 @@ mkdir -p "$XDG_RUNTIME_DIR"
chmod 0700 "$XDG_RUNTIME_DIR"
# Local scripts
export GEM_HOME="$(ruby -e 'puts Gem.user_dir')"
export CABAL_HOME="$HOME/.cabal"
export CARGO_HOME="$HOME/.cargo"
export PATH="$HOME/.local/bin:$CABAL_HOME/bin:$GEM_HOME/bin:$CARGO_HOME/bin:$PATH"
export RVM_HOME="$HOME/.rvm"
export PATH="$HOME/.local/bin:$CABAL_HOME/bin:$RVM_HOME/bin:$CARGO_HOME/bin:$PATH"
# For vim
export EDITOR="nvim"