From b8d52285674cf3ece06374d047855112ae6b0479 Mon Sep 17 00:00:00 2001 From: Bill Nibz Date: Fri, 22 Dec 2017 19:44:42 -0500 Subject: [PATCH] Bash: Fix some "PATH" stuff --- bash/bashrc | 8 ++++++-- bash/bashrc-remote | 2 -- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bash/bashrc b/bash/bashrc index 6bc6f09..d7247bf 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -77,8 +77,12 @@ function sojourner_tmux(){ #=============================================================================== # Path #=============================================================================== -# rbenv -PATH="$HOME/.rbenv/bin:$PATH" +# Ruby Gems +if which ruby >/dev/null && which gem >/dev/null; then + PATH="$(ruby -rubygems -e 'puts Gem.user_dir')/bin:$PATH" +fi +# Custom stuff +PATH="$HOME/bin:$PATH" # Add Python to path PYTHONPATH="${PYTHONPATH}" export PYTHONPATH diff --git a/bash/bashrc-remote b/bash/bashrc-remote index d3c71ee..83625de 100644 --- a/bash/bashrc-remote +++ b/bash/bashrc-remote @@ -47,8 +47,6 @@ function show_git_info(){ if which ruby >/dev/null && which gem >/dev/null; then PATH="$(ruby -rubygems -e 'puts Gem.user_dir')/bin:$PATH" fi -# RVM -PATH="$HOME/.rvm/bin:$PATH" # Custom stuff PATH="$HOME/bin:$PATH" # Add Python to path