Browse Source

update path for gem

pull/1/head
10sr 11 years ago
parent
commit
51c2446ffb
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      profile

+ 5
- 1
profile View File

@@ -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"


Loading…
Cancel
Save