aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--README.md7
-rw-r--r--VERSION4
-rw-r--r--man/man7/dotfiles.7df9
-rw-r--r--rbenv/profile.d/rbenv.sh5
-rw-r--r--rbenv/shrc.d/plenv.sh21
-rw-r--r--vim/vimrc11
7 files changed, 57 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 2377abdb..0613ea05 100644
--- a/Makefile
+++ b/Makefile
@@ -37,6 +37,7 @@
install-plenv \
install-psql \
install-pyenv \
+ install-rbenv \
install-readline \
install-sh \
install-subversion \
@@ -538,6 +539,10 @@ install-pyenv: install-sh
cp -p -- pyenv/profile.d/* $(HOME)/.profile.d
cp -p -- pyenv/shrc.d/* $(HOME)/.shrc.d
+install-rbenv: install-sh
+ cp -p -- rbenv/profile.d/* $(HOME)/.profile.d
+ cp -p -- rbenv/shrc.d/* $(HOME)/.shrc.d
+
install-readline:
cp -p -- readline/inputrc $(HOME)/.inputrc
diff --git a/README.md b/README.md
index 361dd191..130caa01 100644
--- a/README.md
+++ b/README.md
@@ -115,6 +115,13 @@ Configuration is included for:
* [X11](https://www.x.org/wiki/)---Windowing system with network transparency
for Unix
+There is also some slightly customized support for multi-version environment
+management for three major scripting languages:
+
+* [plenv](https://github.com/tokuhirom/plenv)---Perl
+* [pyenv](https://github.com/pyenv/pyenv)---Python
+* [rbenv](https://github.com/rbenv/rbenv)---Ruby
+
The configurations for shells, Mutt, tmux, and Vim are the most likely to be of
interest. The i3 configuration is limited mainly to changing window switching
key bindings to match Vim's. There are a fair few resources defined for
diff --git a/VERSION b/VERSION
index 09b6f00f..e0bf6231 100644
--- a/VERSION
+++ b/VERSION
@@ -1,2 +1,2 @@
-tejr dotfiles v9.19.1
-Sun, 07 Jun 2020 21:27:28 +0000
+tejr dotfiles v9.20.0
+Sun, 07 Jun 2020 23:24:44 +0000
diff --git a/man/man7/dotfiles.7df b/man/man7/dotfiles.7df
index f0e82fe2..40e4dedd 100644
--- a/man/man7/dotfiles.7df
+++ b/man/man7/dotfiles.7df
@@ -175,6 +175,15 @@ Vim (https://www.vim.org/)\[em]Vi IMproved, a text editor
X11 (https://www.x.org/wiki/)\[em]Windowing system with network
transparency for Unix
.PP
+There is also some slightly customized support for multi\-version
+environment management for three major scripting languages:
+.IP \[bu] 2
+plenv (https://github.com/tokuhirom/plenv)\[em]Perl
+.IP \[bu] 2
+pyenv (https://github.com/pyenv/pyenv)\[em]Python
+.IP \[bu] 2
+rbenv (https://github.com/rbenv/rbenv)\[em]Ruby
+.PP
The configurations for shells, Mutt, tmux, and Vim are the most likely
to be of interest.
The i3 configuration is limited mainly to changing window switching key
diff --git a/rbenv/profile.d/rbenv.sh b/rbenv/profile.d/rbenv.sh
new file mode 100644
index 00000000..52787b4d
--- /dev/null
+++ b/rbenv/profile.d/rbenv.sh
@@ -0,0 +1,5 @@
+# Add rbenv to PATH and MANPATH if it appears to be in use
+[ -d "$HOME"/.rbenv ] || return
+PATH=$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH
+MANPATH=$HOME/.rbenv/versions/$(ruby -e 'print "#{ RUBY_VERSION }"')/man:$MANPATH
+export MANPATH
diff --git a/rbenv/shrc.d/plenv.sh b/rbenv/shrc.d/plenv.sh
new file mode 100644
index 00000000..ed9ddd03
--- /dev/null
+++ b/rbenv/shrc.d/plenv.sh
@@ -0,0 +1,21 @@
+# POSIX-compatible version of the rbenv Bash shell wrapper
+[ -d "$HOME"/.rbenv ] || return
+rbenv() {
+ case $1 in
+ rehash)
+ shift
+ eval "$(rbenv sh-rehash "$@")"
+ ;;
+ sh-rehash)
+ command rbenv "$@"
+ ;;
+ shell)
+ shift
+ eval "$(rbenv sh-shell "$@")"
+ ;;
+ *)
+ command rbenv "$@"
+ rbenv rehash
+ ;;
+ esac
+}
diff --git a/vim/vimrc b/vim/vimrc
index 470b4cb1..4526dbc1 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -2,7 +2,7 @@
" Tom Ryder (tejr)’s Literate Vimrc
" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
"
-" Last updated: Mon, 01 Jun 2020 21:38:45 UTC
+" Last updated: Sun, 07 Jun 2020 23:23:04 UTC
"
" │ And I was lifted up in heart, and thought
" │ Of all my late-shown prowess in the lists,
@@ -11,8 +11,13 @@
" │ Had heaven appeared so blue, nor earth so green,
" │ For all my blood danced in me, and I knew
" │ That I should light upon the Holy Grail.
-" │
-" │ —Tennyson
+"
+" —Tennyson
+"
+" │ your vimrc is better than the bible
+"
+" —@polanco@mastodon.sdf.org
+" <https://mastodon.sdf.org/@polanco/104069285780040986>
"
" This file is an attempt at something like a “literate vimrc”, in the