Bash: Fix some "PATH" stuff

This commit is contained in:
Bill Nibz 2017-12-22 19:44:42 -05:00
parent a73bc97c55
commit b8d5228567
2 changed files with 6 additions and 4 deletions

View file

@ -77,8 +77,12 @@ function sojourner_tmux(){
#=============================================================================== #===============================================================================
# Path # Path
#=============================================================================== #===============================================================================
# rbenv # Ruby Gems
PATH="$HOME/.rbenv/bin:$PATH" 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 # Add Python to path
PYTHONPATH="${PYTHONPATH}" PYTHONPATH="${PYTHONPATH}"
export PYTHONPATH export PYTHONPATH

View file

@ -47,8 +47,6 @@ function show_git_info(){
if which ruby >/dev/null && which gem >/dev/null; then if which ruby >/dev/null && which gem >/dev/null; then
PATH="$(ruby -rubygems -e 'puts Gem.user_dir')/bin:$PATH" PATH="$(ruby -rubygems -e 'puts Gem.user_dir')/bin:$PATH"
fi fi
# RVM
PATH="$HOME/.rvm/bin:$PATH"
# Custom stuff # Custom stuff
PATH="$HOME/bin:$PATH" PATH="$HOME/bin:$PATH"
# Add Python to path # Add Python to path