瀏覽代碼

update path for gem

pull/1/head
10sr 12 年之前
父節點
當前提交
51c2446ffb
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      profile

+ 5
- 1
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"


Loading…
取消
儲存