fix path to commands installed by gem install --user-install
parent
d6e6caf3c6
commit
0dfd477978
|
|
@ -1,5 +1,11 @@
|
|||
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 {
|
||||
about 'removes installed gem'
|
||||
|
|
|
|||
|
|
@ -3,8 +3,10 @@
|
|||
# Load RVM, if you are using it
|
||||
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
|
||||
|
||||
# Add rvm gems and nginx to the path
|
||||
export PATH=$PATH:~/.gem/ruby/1.8/bin:/opt/nginx/sbin
|
||||
# Add nginx to the path
|
||||
PATH=$PATH:/opt/nginx/sbin
|
||||
|
||||
export PATH
|
||||
|
||||
# Path to the bash it configuration
|
||||
export BASH_IT=$HOME/.bash_it
|
||||
|
|
|
|||
Loading…
Reference in New Issue