diff options
-rw-r--r-- | %HOME%/.bashrc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/%HOME%/.bashrc b/%HOME%/.bashrc index b285cc1..5c2e619 100644 --- a/%HOME%/.bashrc +++ b/%HOME%/.bashrc @@ -40,11 +40,13 @@ export PYTHONSTARTUP="$HOME/.pythonrc" update_ruby_settings() { local user_dir + local bin_dir command -v ruby &> /dev/null \ && command -v gem &> /dev/null \ && user_dir="$( ruby -e 'print Gem.user_dir' )" \ - && add_path "$user_dir/bin" \ + && bin_dir="$( ruby -e 'puts Gem.bindir' )" \ + && add_path "$bin_dir" \ && export GEM_HOME="$user_dir" } |