From b1a9bcba72c11fde73214a939c203fe6ca4c2b34 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Thu, 9 Feb 2017 21:08:23 +0100 Subject: [PATCH] use rvm to run sup with an old ruby --- local/bin/sup | 2 ++ profile | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100755 local/bin/sup diff --git a/local/bin/sup b/local/bin/sup new file mode 100755 index 0000000..13950ea --- /dev/null +++ b/local/bin/sup @@ -0,0 +1,2 @@ +#!/bin/sh +exec rvm 2.3.3 do sup diff --git a/profile b/profile index c812217..b06b384 100755 --- a/profile +++ b/profile @@ -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"