aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-11-04 03:11:46 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-11-04 03:11:46 +0300
commit8211587734b14da84d191388723bad3f393f4b9a (patch)
tree60bd2852a12a72b6944257ebbba915dbbda8c16b /%HOME%
parentadd_missing_path: preserve order (diff)
downloadlinux-home-8211587734b14da84d191388723bad3f393f4b9a.tar.gz
linux-home-8211587734b14da84d191388723bad3f393f4b9a.zip
update_ruby_settings: code style
Diffstat (limited to '')
-rw-r--r--%HOME%/.bashrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/%HOME%/.bashrc b/%HOME%/.bashrc
index 5c2e619..dbaae9b 100644
--- a/%HOME%/.bashrc
+++ b/%HOME%/.bashrc
@@ -44,10 +44,10 @@ update_ruby_settings() {
command -v ruby &> /dev/null \
&& command -v gem &> /dev/null \
- && user_dir="$( ruby -e 'print Gem.user_dir' )" \
+ && user_dir="$( ruby -e 'print Gem.user_dir' )" \
+ && export GEM_HOME="$user_dir" \
&& bin_dir="$( ruby -e 'puts Gem.bindir' )" \
- && add_path "$bin_dir" \
- && export GEM_HOME="$user_dir"
+ && add_path "$bin_dir"
}
update_ruby_settings