Merge pull request #434 from ipoval/fix_path_to_commands_installed_with_user_install_gems

fix path to commands installed by gem install --user-install
pull/437/head
Nils Winkler 2015-03-26 19:23:06 +01:00
commit 800a5f9dbe
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