Sam Stephenson
ef44b4ccac
Merge branch 'master' into help
2012-12-29 11:23:23 -06:00
Sam Stephenson
e0b8938fef
Merge pull request #299 from sstephenson/automatic-local-exec
...
Automatic local exec
2012-12-28 09:05:24 -08:00
Sam Stephenson
df9bbd7ab3
Speed up rbenv-rehash with a simpler indexing approach
2012-12-27 17:16:57 -06:00
Sam Stephenson
339e331f1d
Ensure outdated shims are removed first when rehashing
2012-12-27 13:42:25 -06:00
Sam Stephenson
283e67b57e
When the ruby shim is invoked with a script, set RBENV_DIR to the script's dirname
2012-12-27 13:41:55 -06:00
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
2012-12-13 05:48:28 +01:00
Alec Chen
3a94daeaf8
remove "+=" operator to support bash-3.0
2012-04-23 22:11:19 +08:00
Sam Stephenson
114b81c9a4
Use if
instead of inline &&
so rbenv rehash
exits with a zero status
2011-12-26 20:12:16 -06:00
Sam Stephenson
b670849ebd
Merge remote-tracking branch 'mlafeldt/rbenv-rehash'
...
Conflicts:
libexec/rbenv-rehash
2011-12-24 18:03:10 -05:00
Sam Stephenson
efe600f6de
Ensure shims don't disappear when rehashed
2011-12-24 15:16:37 -05:00
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.)
2011-11-14 22:30:47 +01:00
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.
2011-11-14 22:30:47 +01:00
Sam Stephenson
f9fb3c934e
rbenv-plugin-scripts -> rbenv-hooks; RBENV_PLUGIN_PATH -> RBENV_HOOK_PATH
2011-09-23 10:43:06 -05:00
Sam Stephenson
699cd8c203
Quote script path and remove unnecessary semicolon
2011-09-21 13:05:08 -05:00
Joshua Peek
96b98ed039
Use plugin-scripts
2011-09-21 12:38:58 -05:00
Roy Liu
94d87211f9
Restore the current working directory in rbenv-rehash
2011-09-19 10:45:12 -04:00
Joshua Peek
964c12fe27
Ensure shims set RBENV_ROOT
2011-09-12 11:05:45 -05:00
Sam Stephenson
0632325a43
Set RBENV_DEBUG=1 to see what's going on under the hood
2011-09-12 10:11:59 -05:00
Sam Stephenson
7ac964353f
RBENV_HOME -> RBENV_ROOT
2011-09-11 11:58:57 -05:00
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.
2011-08-25 09:28:01 +02:00
Sam Stephenson
113e037646
Move the nullglob declaration further up so a '*' shim isn't created when no Ruby versions are present. Fixes #45 .
2011-08-17 17:53:37 -05:00
Sam Stephenson
dd8a005c7d
Atomic rehash
2011-08-15 01:16:13 -05:00
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.
2011-08-12 11:33:45 +02:00
Sam Stephenson
fffb29d695
Speed up rbenv-rehash by using hard links
2011-08-03 22:57:27 -05:00
Jamis Buck
5d8c40444d
iterate over all matching plugins, not just the first
2011-08-03 20:55:03 -06:00
Jamis Buck
b6ebc2f08b
look for plugins to extend rehash and which
2011-08-03 11:17:28 -06:00
Joshua Peek
044eb6c802
Merge branch 'master' into libexec
2011-08-02 19:49:57 -05:00
Joshua Peek
d65141c7b5
Merge branch 'master' into libexec
...
Conflicts:
bin/rbenv
libexec/rbenv-shim
2011-08-02 19:41:03 -05:00
Joshua Peek
43624943ee
Move subcommands into libexec/
2011-08-02 18:01:46 -05:00