fix path to commands installed by gem install --user-install

pull/434/head
Ivan Povalyukhin 2015-03-25 19:23:46 -07:00 committed by Ivan Povalyukhin
parent d6e6caf3c6
commit 0dfd477978
2 changed files with 11 additions and 3 deletions

View File

@ -1,5 +1,11 @@
cite about-plugin cite about-plugin
about-plugin 'adds "remove_gem" function' about-plugin 'ruby and rubygems specific functions and settings'
# Make commands installed with 'gem install --user-install' available
# ~/.gem/ruby/${RUBY_VERSION}/bin/
if which ruby >/dev/null && which gem >/dev/null; then
PATH="$PATH:$(ruby -e 'print Gem.user_dir')/bin";
fi
function remove_gem { function remove_gem {
about 'removes installed gem' about 'removes installed gem'

View File

@ -3,8 +3,10 @@
# Load RVM, if you are using it # Load RVM, if you are using it
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm [[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
# Add rvm gems and nginx to the path # Add nginx to the path
export PATH=$PATH:~/.gem/ruby/1.8/bin:/opt/nginx/sbin PATH=$PATH:/opt/nginx/sbin
export PATH
# Path to the bash it configuration # Path to the bash it configuration
export BASH_IT=$HOME/.bash_it export BASH_IT=$HOME/.bash_it