Sam Stephenson
37eca782cc
Documentation tweaks
il y a 11 ans
Mislav Marohnić
3436bddaea
new-style documentation for most commands
il y a 11 ans
Mislav Marohnić
3060578e3b
use `typeset` instead of `local` in rbenv() function
This is to insure portability to ksh.
Fixes #205 , references #209
il y a 11 ans
Ruben Verborgh
cf28136003
speed up rbenv-init
Use `rbenv-commands` instead of `rbenv commands`. The latter
unnecessarily goes through `rbenv` executable.
Fixes #254
il y a 12 ans
Andrew Marshall
9c43fa9161
Prevent $command from leaking outside of function
il y a 12 ans
John Williams
f40bc773d2
Allow init arguments to be in any order.
il y a 12 ans
Sam Stephenson
ee5ad02d42
Add --no-rehash option to rbenv-init ( #170 )
il y a 12 ans
Sam Stephenson
288c6b3f09
Go with paren-style function definition
il y a 12 ans
Michael Grubb
7e83e07cf3
Made ksh portability changes
Added specific message for ksh in identifying the proper shell
initialization file.
Changed rbenv functiond definition to be more portable.
Shell functions should be defined by using the function command or
using the parenthesis grammar, but using both is not portable:
rbenv() {... -or-
function rbenv { ...
il y a 12 ans
Sam Stephenson
0632325a43
Set RBENV_DEBUG=1 to see what's going on under the hood
il y a 13 ans
Sam Stephenson
7ac964353f
RBENV_HOME -> RBENV_ROOT
il y a 13 ans
Sam Stephenson
fb6eee26d4
Only shift if an argument is passed. Fixes #78 .
il y a 13 ans
Sam Stephenson
1ba2ce0cb6
Fix quoting in rbenv function
il y a 13 ans
Alexander Rinass
5130f0464a
Support install locations other than $HOME/.rbenv.
Define RBENV_HOME env variable in libexec/rbenv and let all script delegates use this variable to determine rbenv's install location.
il y a 13 ans
Joshua Peek
f9225d9cb4
Define lightweight rbenv shell function to dispatch commands
il y a 13 ans
Paul Mucur
b7e19b4953
Solaris doesn't support readlink so use greadlink if available instead.
Taken from Ryan Tomayko's "GNU is killing Solaris", c.f. http://tomayko.com/writings/gnu-is-killing-solaris
il y a 13 ans
Sam Stephenson
b45bce80ca
Source the zsh autocompletion script in rbenv-init
il y a 13 ans
Sam Stephenson
6d6b1d6002
Run `rbenv rehash` on init
il y a 13 ans
Andreas Johansson
6938692ca2
Fix argument that cannot be sent to bash via env
/usr/bin/env seems to have problems with arguments to bash on some
platforms. To bypass this, use set -e instead.
il y a 13 ans
Sam Stephenson
2fa7432060
Fix expansion quoting
il y a 13 ans
Sam Stephenson
9f18fe5031
Automatically create a default of system if it's missing instead of raising an error
il y a 13 ans
Sam Stephenson
f84dc27c58
Autocreate ~/.rbenv skeleton in rbenv-init
il y a 13 ans
Sam Stephenson
4ee92fca43
Bare `rbenv init` prints a message; `rbenv init -` prints the init script
il y a 13 ans
Sam Stephenson
00b8b4db33
Don't need to test if the shims directory is present since rbenv-rehash creates it
il y a 13 ans
Joshua Peek
917b3687cb
Export $PATH on init
il y a 13 ans
Joshua Peek
271bfea97d
Don't rehash on init for now
il y a 13 ans
Joshua Peek
70e1f61337
Quote path
il y a 13 ans
Joshua Peek
df61a76ab0
Add init command
il y a 13 ans