Daniel Hahler
5f8a4c4d62
Fix some issues reported by shellcheck
2017-11-29 16:20:51 +01:00
Mislav Marohnić
eda952ab08
Merge branch 'cdpath-enable'
2017-11-29 15:53:41 +01:00
Mislav Marohnić
b80ea43e25
Quote directory name in variable assignment
2017-11-29 15:51:03 +01:00
Mislav Marohnić
c310bc5f83
Merge pull request #968 from maxnordlund/patch-1
...
Fix fish subcommand completion
2017-11-29 15:47:19 +01:00
Mislav Marohnić
eab68688dc
Merge pull request #959 from zenspider/fix-dash-u
...
Fixed `rbenv init -` output to work w/ no args and bash's `set -u`.
2017-11-29 15:40:23 +01:00
Mislav Marohnić
5183e32887
Merge pull request #982 from MartinNowak/issue759
...
partly resolve #759
2017-11-29 15:37:22 +01:00
Mislav Marohnić
e2f469a7cd
Merge pull request #1002 from blueyed/fix-which-tests-PATH
...
test/which.bats: do not export PATH
2017-11-29 15:25:03 +01:00
Mislav Marohnić
33a5c2495d
Merge pull request #1003 from blueyed/version-file-skip-dirs
...
rbenv-version-file: ensure that the version file is a file
2017-11-29 15:23:58 +01:00
Mislav Marohnić
66b9f6fb2b
Merge pull request #1024 from andyone/master
...
Fixed support for commas for all environment variables in configure script
2017-11-29 15:20:00 +01:00
Daniel Hahler
a9ca72ab8e
test/which.bats: do not export PATH
...
Otherwise `sed` might not be found later in bats/libexec/bats-exec-test,
in case `/usr/bin` gets removed.
2017-11-20 04:22:05 +01:00
Ryan Davis
1a8b5e04a9
Fixed rbenv init -
output to work w/ no args and bash's set -u
.
2017-11-06 13:59:04 -08:00
Mislav Marohnić
2d7cefe782
Merge pull request #1034 from MinhThienDX/master
...
Fix URL fragment target
2017-09-04 18:57:27 +02:00
MinhThienDX
650c9d3452
Fix URL fragment target
2017-09-04 23:51:22 +07:00
Jeremy Daer
4ebd1bd12c
Merge pull request #1009 from jeremy/homebrew-install-clarification
...
Clarify Homebrew/git install guidance
2017-08-23 14:47:56 -10:00
Anton Novojilov
dbaa8c83b6
Fixed support of build env vars for dynamic bash extension configure script
2017-08-07 13:12:37 +02:00
Mislav Marohnić
615f8443fe
Merge pull request #1011 from kenaniah/patch-1
...
Properly escapes commas in c flags
2017-06-25 02:48:23 +02:00
Kenaniah Cerny
fc706daf60
properly escapes commas in cflags
2017-06-18 20:57:52 -07:00
Mislav Marohnić
6cd487db81
rbenv 1.1.1
2017-06-15 16:55:33 +02:00
Jeremy Daer
e3e99cc906
Clarify Homebrew/git install guidance
...
* Move Homebrew to the top, common case for new devs
* Note that `brew install rbenv` includes ruby-build by default
* Be clear that `rbenv init` instructions are needed for shell setup
* Be explicit about starting a new shell to pick up PATH/init changes
* Use rbenv-doctor to conclusively demonstrate correct setup
* Separate upgrade instructions for Homebrew vs Git installs
Related: https://github.com/rbenv/ruby-build/pull/1106
2017-06-14 09:02:50 -07:00
Daniel Hahler
95b1b05cbe
rbenv-version-file: ensure that the version file is a file
...
Forwarded from https://github.com/pyenv/pyenv/pull/606 .
2017-06-05 15:40:59 +02:00
Mislav Marohnić
755c820724
Merge pull request #986 from jeffkowalski/fix_init
...
Prefer 'set' over 'setenv' for fish shell
2017-05-17 00:34:20 +02:00
Mislav Marohnić
b4330a48b1
Merge pull request #999 from jacob-on-github/patch-1
...
Make homebrew installation instructions more clear
2017-05-17 00:12:52 +02:00
Jeff Kowalski
a81da8d864
Revert quoting change in previous commit; adjust test to match code
...
Revert back to original quoting style used before previous commit.
Adjust init.bats to reflect changes for successful tests.
2017-05-16 13:36:06 -07:00
jacob-on-github
4e27113494
Update README.md
...
I work on a team that has followed the Homebrew installations. More than once we've missed the `rbenv init` instruction and it has caused headaches down the road. This formatting makes it harder to miss.
2017-05-16 14:29:46 -05:00
Jeff Kowalski
be2e606fbd
Prefer 'set' over 'setenv' for fish shell
...
The setenv function in fish shell has changed dramatically in
75600b6b53
It now conforms to the csh version, which takes at most two arguments.
In this init script, the form
setenv PATH prepend_something $PATH
had been used, which had too many arguments.
Since setenv isn't a native command in fish, a suitable replacement is
to use the "set -gx" command, which can consume multiple arguments.
2017-04-06 23:55:48 -07:00
Tim Pope
9d93605e18
Don't unset CDPATH
2017-04-05 17:39:39 -04:00
Tim Pope
1f1e291385
Enforce absolute RBENV_DIR
...
This prevents CDPATH from becoming an issue.
Closes #866 .
2017-04-05 16:54:03 -04:00
Martin Nowak
db39044ef6
partly resolve #759
...
- some versions of bash (e.g. 4.3.11) complain about clobbering
/dev/null, use bash's explicit >| operator to ignore noclober
- not sure if the original #759 report has the same cause
- https://github.com/rbenv/rbenv/issues/759#issuecomment-289326891
2017-03-27 02:06:13 +02:00
Max Nordlund
fab5cf912f
Fix pyenv -> rbenv typo
2017-02-10 09:31:13 +01:00
Max Nordlund
9f52b56aa8
Fix fish subcommand completion
...
This allows subcommand style plugins to properly autocomplete.
Existing commands are not affected.
Example, say you have support for `rbenv foo bar --flag`, then
this allows the last `--flag` argument to be properly completed.
2017-02-10 09:12:30 +01:00
Mislav Marohnić
4f8925abe7
Merge pull request #958 from jasonkarns/rbenv-variable-namespace
...
Conforms OLD_RBENV_VERSION to RBENV_* convention
2016-12-20 14:34:32 +01:00
Jason Karns
8eb97549e1
Conforms OLD_RBENV_VERSION to RBENV_* convention
...
Keeping rbenv-controlled variables to RBENV_* "namespace" helps with
discoverability (and tools like rbenv-env) but also consistency and a
very minor degree of safety/isolation from env impact.
2016-12-19 17:21:45 -05:00
Mislav Marohnić
e60ad4a090
rbenv 1.1.0
2016-11-25 21:11:08 +01:00
Mislav Marohnić
6ced4e25de
Merge pull request #873 from dmerand/patch-1
...
Fish shell "." is deprecated in favor of "source"
2016-11-25 20:32:54 +01:00
Mislav Marohnić
2207c27cb4
Merge branch 'shell-undo'
2016-11-25 20:26:24 +01:00
Mislav Marohnić
c4d97ad392
Finalize rbenv shell -
implementation
...
This ensures that OLD_RBENV_VERSION is never exported. This makes the
implementation a little bit more complex, since more logic needs to be
pushed down into eval'd code.
2016-11-25 20:24:16 +01:00
Mislav Marohnić
1b751261ce
Merge pull request #914 from yyuu/sh-help-stderr
...
Help message should not be written to stdout for `sh-` commands
2016-11-25 19:06:01 +01:00
Mislav Marohnić
c7dcaf1259
Merge pull request #924 from jlduran/add-freebsd-to-configure-c-extensions
...
src/configure: Add FreeBSD
2016-09-27 15:17:33 -04:00
Mislav Marohnić
d0779fc8fb
Expand literal tilde in PATH
...
The literal tilde in a PATH entry (e.g. `~/.rbenv/shims`) doesn't seem
to be supported by system `which` utility, but *does* seem to be
supported by `command -v` (used in `rbenv-which`) and `type -p`.
Therefore, we must strip away `~/.rbenv/shims` from PATH when looking up
executables for system Ruby, lest we risk infinite loop. We do so by
substituting any occurence of `~` in PATH with the value of `HOME`.
2016-09-09 10:29:12 +02:00
Jose Luis Duran
99342d642f
src/configure: Add FreeBSD
2016-08-08 17:24:07 -03:00
Mislav Marohnić
0c7224af95
Merge pull request #919 from yyuu/system-in-bin
...
Add a workaround system executable in `/bin`
2016-08-03 03:58:31 -09:00
Yamashita, Yuu
36138f4901
Rewrite with using here document syntax
2016-08-03 06:29:59 +00:00
Yamashita, Yuu
83e874a165
Add explicit shebang to executable for testing
2016-08-03 01:33:35 +00:00
Yamashita, Yuu
8eefa41a4d
Remove useless touch
line
2016-08-03 00:58:05 +00:00
Mislav Marohnić
57a902f36a
Merge pull request #922 from jlduran/update-src-shobj-conf
...
Update `shobj-conf`
2016-08-02 19:04:10 +02:00
Jose Luis Duran
07fd1ae66b
Update shobj-conf
...
Update the `shobj-conf` script imported from bash to support new OSs.
2016-08-02 11:36:37 -03:00
Yamashita, Yuu
a456528be8
Keep original ordering of PATH configuration
2016-08-02 00:21:28 +00:00
Yamashita, Yuu
6030ea51e4
Add a workaround for system executables in /bin
2016-08-01 00:32:50 +00:00
Yamashita, Yuu
2485257424
Add a test to confirm the prefix doesn't work fine with /bin/ruby
2016-08-01 00:31:11 +00:00
Yamashita, Yuu
26ac59fd1d
Write help message to stdout
2016-07-04 00:56:08 +00:00