aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-05-04 18:13:37 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-05-04 18:13:37 +0300
commit03c2d95cfe7fb48f280b35d97e50491c0c3b2f92 (patch)
tree31344398382709304a91ac1beafef6277ee64fb8 /%HOME%
parent.vimrc: new line without insert mode (diff)
downloadlinux-home-03c2d95cfe7fb48f280b35d97e50491c0c3b2f92.tar.gz
linux-home-03c2d95cfe7fb48f280b35d97e50491c0c3b2f92.zip
.profile: setup chruby
Diffstat (limited to '%HOME%')
-rw-r--r--%HOME%/.profile12
1 files changed, 11 insertions, 1 deletions
diff --git a/%HOME%/.profile b/%HOME%/.profile
index ecc9570..c382ae2 100644
--- a/%HOME%/.profile
+++ b/%HOME%/.profile
@@ -45,7 +45,17 @@ ruby_setup() {
&& path_export "$bin_dir"
}
-ruby_setup
+# Deprecated in favour of using chruby/RVM/etc. for Ruby management.
+#ruby_setup
+
+chruby_setup() {
+ local install_prefix="$HOME/.local"
+ local share_dir="$install_prefix/share/chruby"
+ [ -r "$share_dir/chruby.sh" ] && . "$share_dir/chruby.sh"
+ [ -r "$share_dir/auto.sh" ] && . "$share_dir/auto.sh"
+}
+
+chruby_setup
# Python-specific stuff