From 03c2d95cfe7fb48f280b35d97e50491c0c3b2f92 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 4 May 2020 18:13:37 +0300 Subject: .profile: setup chruby --- %HOME%/.profile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to '%HOME%/.profile') 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 -- cgit v1.2.3