From 51c2446ffbff34faebd1453302a7ce194b13a047 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 23 Jan 2013 20:59:35 +0900 Subject: [PATCH] update path for gem --- profile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/profile b/profile index fb397a4..a136c25 100755 --- a/profile +++ b/profile @@ -21,11 +21,15 @@ test -f "${HOME}/.dotfiles/rc.py" && \ export PYTHONSTARTUP="${HOME}/.dotfiles/rc.py" #export PYTHONPATH="~/.local/share/lib/python3.2/site-packages" +export GEM_HOME="$HOME/.local/lib/gems" +export PATH="$PATH:$HOME/.local/lib/gems/bin" +export RUBYLIB="$RUBYLIB:$HOME/.local/lib/gems/lib" + __add_to_path(){ for p in "$@" do echo $PATH | grep -E "^$p:|:$p:|:$p$" >/dev/null 2>&1 || \ - PATH="${PATH}:$p" + PATH="$p:${PATH}" done } # export PATH="${PATH}:${HOME}/bin"