aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-11-04 00:28:27 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-11-04 00:28:27 +0300
commitf7d1ac7044210ec37cc98a4e121e9798b0b4e305 (patch)
tree475908c5e28e37009ae6da63b7125d0fc01d2e77
parentrunc*: interface update (diff)
downloadlinux-home-f7d1ac7044210ec37cc98a4e121e9798b0b4e305.tar.gz
linux-home-f7d1ac7044210ec37cc98a4e121e9798b0b4e305.zip
update_ruby_settings: fix Ruby directory paths
Diffstat (limited to '')
-rw-r--r--%HOME%/.bashrc4
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"
}