diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-11-04 00:28:27 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-11-04 00:28:27 +0300 |
commit | f7d1ac7044210ec37cc98a4e121e9798b0b4e305 (patch) | |
tree | 475908c5e28e37009ae6da63b7125d0fc01d2e77 | |
parent | runc*: interface update (diff) | |
download | linux-home-f7d1ac7044210ec37cc98a4e121e9798b0b4e305.tar.gz linux-home-f7d1ac7044210ec37cc98a4e121e9798b0b4e305.zip |
update_ruby_settings: fix Ruby directory paths
-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" } |