Mislav Marohnić
1fe59e41ea
error message when rehash fails on non-writable directory
Fixes #238
пре 13 година
Mislav Marohnić
cd940bd797
typo in docs
пре 13 година
Sam Stephenson
e56885f4c9
"binary" -> "executable"
пре 13 година
Sam Stephenson
44c2378f2a
Shims include the full path to rbenv
This makes it possible to execute rbenv shims without rbenv's bin
directory in the path.
пре 13 година
Sam Stephenson
37eca782cc
Documentation tweaks
пре 13 година
Mislav Marohnić
2b21e22e97
display help for commands that have Summary but not Usage
A command doesn't have to specify Usage docs if it doesn't accept any
arguments. The default usage for a command will be printed as:
Usage: rbenv ${command}
пре 13 година
Sam Stephenson
4c19dc22d7
Improve syntax for inline documentation and allow for multi-line usage
пре 13 година
Sam Stephenson
df9bbd7ab3
Speed up rbenv-rehash with a simpler indexing approach
пре 13 година
Sam Stephenson
339e331f1d
Ensure outdated shims are removed first when rehashing
пре 13 година
Sam Stephenson
283e67b57e
When the ruby shim is invoked with a script, set RBENV_DIR to the script's dirname
пре 13 година
Mislav Marohnić
b8715bfee6
foundation for a help system where each command holds its own docs
Docs are comprised from "Usage", "Summary" and "Help" sections, where
"Help" can span multiple commented lines. If it is missing, "Summary" is
shown in its place.
References #204 , references #206
пре 13 година
Alec Chen
3a94daeaf8
remove "+=" operator to support bash-3.0
пре 14 година
Sam Stephenson
114b81c9a4
Use `if` instead of inline `&&` so `rbenv rehash` exits with a zero status
пре 14 година
Sam Stephenson
efe600f6de
Ensure shims don't disappear when rehashed
пре 14 година
Mathias Lafeldt
9dde161b65
rbenv-rehash: use $OLDPWD to restore previous working directory
$OLDPWD is a standard shell variable that contains the previous working
directory as set by the "cd" command. No need to save $PWD to some
custom variable.
(We could also have used "cd -" but it prints out $OLDPWD too.)
пре 14 година
Mathias Lafeldt
0324b118ee
rbenv-rehash: remove superfluous trap signals
A trap on the special signal EXIT is executed before the shell
terminates. EXIT actually covers SIGINT and SIGTERM as well, and
we don't need any extra traps for them.
See bash(1) and "help trap" in bash.
пре 14 година
Sam Stephenson
f9fb3c934e
rbenv-plugin-scripts -> rbenv-hooks; RBENV_PLUGIN_PATH -> RBENV_HOOK_PATH
пре 15 година
Sam Stephenson
699cd8c203
Quote script path and remove unnecessary semicolon
пре 15 година
Joshua Peek
96b98ed039
Use plugin-scripts
пре 15 година
Roy Liu
94d87211f9
Restore the current working directory in rbenv-rehash
пре 15 година
Joshua Peek
964c12fe27
Ensure shims set RBENV_ROOT
пре 15 година
Sam Stephenson
0632325a43
Set RBENV_DEBUG=1 to see what's going on under the hood
пре 15 година
Sam Stephenson
7ac964353f
RBENV_HOME -> RBENV_ROOT
пре 15 година
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.
пре 15 година
Sam Stephenson
113e037646
Move the nullglob declaration further up so a '*' shim isn't created when no Ruby versions are present. Fixes #45 .
пре 15 година
Sam Stephenson
dd8a005c7d
Atomic rehash
пре 15 година
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.
пре 15 година
Sam Stephenson
fffb29d695
Speed up rbenv-rehash by using hard links
пре 15 година
Jamis Buck
5d8c40444d
iterate over all matching plugins, not just the first
пре 15 година
Jamis Buck
b6ebc2f08b
look for plugins to extend rehash and which
пре 15 година
Joshua Peek
43624943ee
Move subcommands into libexec/
пре 15 година
Joshua Peek
c957d83b3a
Shebang -e flag
пре 15 година
Jamis Buck
41c5ac5a33
the initial case has an empty directory, so force rm to avoid errors
пре 15 година
Sam Stephenson
355e7c1c96
Create ~/.rbenv/shims if it doesn't exist
пре 15 година
Sam Stephenson
0c66f62c17
Style
пре 15 година
Sam Stephenson
99035a49a9
Initial commit
пре 15 година