diff options
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | README.md | 7 | ||||
-rw-r--r-- | VERSION | 4 | ||||
-rw-r--r-- | man/man7/dotfiles.7df | 9 | ||||
-rw-r--r-- | rbenv/profile.d/rbenv.sh | 5 | ||||
-rw-r--r-- | rbenv/shrc.d/plenv.sh | 21 | ||||
-rw-r--r-- | vim/vimrc | 11 |
7 files changed, 57 insertions, 5 deletions
@@ -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 @@ -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 @@ -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 +} @@ -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 |