aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-04-28 01:00:36 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-04-28 01:00:36 +0300
commit2ca311eecd643c3132f1c51fc4833ca1e775af8d (patch)
tree061aaeb8a0e2b7a6724c21ca65523d15cdff4e7e /%HOME%
parentos.sh: add manual_pkg_list_arch (diff)
downloadlinux-home-2ca311eecd643c3132f1c51fc4833ca1e775af8d.tar.gz
linux-home-2ca311eecd643c3132f1c51fc4833ca1e775af8d.zip
.profile: setup rbenv
Diffstat (limited to '')
-rw-r--r--%HOME%/.gemrc4
-rw-r--r--%HOME%/.profile6
2 files changed, 9 insertions, 1 deletions
diff --git a/%HOME%/.gemrc b/%HOME%/.gemrc
index bfece73..4c4c4f3 100644
--- a/%HOME%/.gemrc
+++ b/%HOME%/.gemrc
@@ -1 +1,3 @@
-gem: --no-document --user-install
+# --user-install is nice to have, but conflicts with rbenv/etc. (gems will be
+# installed to ~/.gem instead of ~/.rbenv/.../gem).
+gem: --no-document
diff --git a/%HOME%/.profile b/%HOME%/.profile
index 475b446..2595534 100644
--- a/%HOME%/.profile
+++ b/%HOME%/.profile
@@ -57,6 +57,12 @@ chruby_setup() {
chruby_setup
+rbenv_setup() {
+ command -v rbenv > /dev/null && eval "$( rbenv init - )"
+}
+
+rbenv_setup
+
# Python-specific stuff
# This is a half-assed way to automatically add your user's pip binary