Yamashita Yuu
6f761f8159
Remove exit 0
from initialization code of fish
2014-06-30 23:00:09 +09:00
Yamashita Yuu
0468ffdd49
v20140628
2014-06-28 18:04:17 +09:00
Makoto Sasaki
21c0d930e9
v20140615
2014-06-15 05:37:34 +09:00
Yamashita Yuu
2b5ee0c425
v20140614
2014-06-14 14:38:13 +09:00
Yamashita Yuu
6efe6dafe7
Changed versioning scheme; 0.4.0-20140602
-> 20140602
2014-06-04 13:40:16 +09:00
Mislav Marohnić
13a474c4e9
Get rid of explicit exit in fish branch of rbenv-init
...
Allows for code to be added to the end of the script which will not
mysteriously fail to run for fish shell.
2014-06-03 00:39:34 +07:00
Yamashita Yuu
d378b274d9
v20140602
2014-06-02 11:27:24 +09:00
Yamashita Yuu
033529915e
v20140520
2014-05-20 12:28:04 +09:00
Yamashita Yuu
ef8c8b8ef2
v20140516
2014-05-16 21:07:19 +09:00
Yamashita Yuu
0c81002220
Prefer gawk over awk if both are available.
2014-05-01 13:09:55 +09:00
Adam Harvey
808527b5d0
Prefer gawk over awk if both are available.
2014-04-18 10:40:56 +10:00
Yamashita Yuu
3cde540ca0
v20140404
2014-04-04 13:16:27 +09:00
Yamashita Yuu
34065dddbb
reads only the first word from file
2014-03-24 19:42:52 +09:00
Yamashita Yuu
ea9214bb2e
ignores carriage returns
2014-03-24 18:15:40 +09:00
Vincent Robert
b025dfcf58
Add \r to IFS instead of removing it manually
2014-03-21 01:36:39 +01:00
Vincent Robert
f50cee2ac7
Simplify bash expression
2014-03-20 16:52:45 +01:00
Vincent Robert
2fd3b18d39
Remove carriage return characters in version file
...
When created on Windows, .rbenv-version or .ruby-version files may have CR characters that will prevent rbenv from correctly parsing the Ruby version. Discard those characters when reading the file.
2014-03-20 11:30:27 +01:00
Yamashita Yuu
0d51899e9b
v0.4.0-20140317
2014-03-17 21:51:40 +09:00
Daniel Hahler
44c20af80e
Optimize pyenv-which: implement remove_from_path in Bash
...
This greatly improves the performance of `pyenv virtualenvwrapper_lazy`,
which happens to call pyenv-which a lot.
For profiling I've initially used:
% zmodload zsh/zprof
% eval "$(pyenv init -)"
% pyenv virtualenvwrapper_lazy
Before:
% zprof|grep -E '(pyenv|virtualenv)'
1) 1 754,07 754,07 58,95% 751,50 751,50 58,75% pyenv
21) 1 2,57 2,57 0,20% 2,57 2,57 0,20% virtualenvwrapper_setup_lazy_loader
1) 1 754,07 754,07 58,95% 751,50 751,50 58,75% pyenv
1/1 2,57 2,57 0,20% 2,57 2,57 virtualenvwrapper_setup_lazy_loader [21]
1/1 2,57 2,57 0,20% 2,57 2,57 pyenv [1]
21) 1 2,57 2,57 0,20% 2,57 2,57 0,20% virtualenvwrapper_setup_lazy_loader
After:
% zprof|grep -E '(pyenv|virtualenv)'
1) 1 383,30 383,30 27,97% 380,88 380,88 27,79% pyenv
31) 1 2,42 2,42 0,18% 2,42 2,42 0,18% virtualenvwrapper_setup_lazy_loader
1) 1 383,30 383,30 27,97% 380,88 380,88 27,79% pyenv
1/1 2,42 2,42 0,18% 2,42 2,42 virtualenvwrapper_setup_lazy_loader [31]
1/1 2,42 2,42 0,18% 2,42 2,42 pyenv [1]
31) 1 2,42 2,42 0,18% 2,42 2,42 0,18% virtualenvwrapper_setup_lazy_loader
Fixes https://github.com/yyuu/pyenv-virtualenvwrapper/issues/13
2014-03-13 19:21:32 +01:00
Yamashita Yuu
65ae0a3261
v0.4.0-20140311
2014-03-11 11:55:44 +09:00
Yamashita Yuu
e835d447ed
v0.4.0-20140211
2014-02-11 12:11:38 +09:00
Yamashita Yuu
73d5ea7426
v0.4.0-20140123
2014-01-23 19:14:26 +09:00
Yamashita Yuu
9c82314570
Unset GREP_OPTIONS
to avoid unexpected grep behavior ( fixes #101 )
2014-01-23 11:11:56 +09:00
Yamashita Yuu
314937d599
Set PYENV_BIN_PATH
in PATH
even if the version is system
( fixes #98 )
2014-01-15 16:41:06 +09:00
Yamashita Yuu
a7f5a19a24
v0.4.0-20140110.1
2014-01-10 15:04:16 +09:00
Yamashita Yuu
38eb9fe948
v0.4.0-20140110
2014-01-10 11:27:43 +09:00
kou1okada
5c1094adb9
Response enhancement for in the case of the working directory under the UNC path.
...
finding_local_version_file is extremely slow, when working directory is under the UNC path.
Because //host/.rbenv-version and //.rbenv-version do not exist, but testing them is so slow.
It's the reason to make a serious delay of the response, when the Ruby runs with a current working directory under the UNC path under Cygwin environment.
A response of before applying this patch.
//somehost/somedir $ time ruby -e "exit"
real 0m13.922s
user 0m0.168s
sys 0m0.287s
A response of after applying this patch.
//somehost/somedir $ time ruby -e "exit"
real 0m0.721s
user 0m0.153s
sys 0m0.319s
2014-01-09 15:31:29 +09:00
Yamashita Yuu
71a916faf2
simplicy the check for infinite loop
2014-01-08 10:54:11 +09:00
Yamashita Yuu
4c5ffc8d99
Avoid infinite loop in case where pwd
returns relative path
...
The `pwd` may return relative path if the `$PWD` is badly declared
in bash/zsh (e.g. `PWD="." bash`). To avoid the infinite loop in
`find_local_version_file()`, stop finding the version file if the
target paths are same consecutively.
2014-01-03 08:35:39 +09:00
Yamashita Yuu
8dc4e8d6f8
Revert "Merge branch 'golang-workaround'"
...
This reverts commit 7edceff71c
, reversing
changes made to 5dea3c9e63
.
2014-01-03 07:39:52 +09:00
Mislav Marohnić
1a6bada94c
Fix detecting parent shell on OpenBSD and Cygwin
...
It seems that "comm" header can't be relied on cross-platform, but that
"ucomm" is more portable. I have no idea whether it's the right value to
use here, but it seems to be doing the job.
Also strip trailing whitespace because OpenBSD 5.4 `ps` output is padded
with spaces for some reason.
Fixes #489
2014-01-02 22:36:03 +01:00
Mislav Marohnić
eda535a942
Fix detecting completions support on OpenBSD
...
The non-extended regex pattern didn't work on OpenBSD so this switches
grep to extended pattern mode that seems to work consistenty on all
systems.
2014-01-02 22:33:54 +01:00
Yamashita Yuu
1587d8a03c
Apply readlink to output from pwd
may returns "." to get actual path
2014-01-03 05:07:21 +09:00
Yamashita Yuu
5dea3c9e63
Import changes from recent rbenv
2014-01-03 04:58:44 +09:00
Yamashita Yuu
3dd9332eee
Fix broken tests
2014-01-03 04:33:30 +09:00
Yamashita Yuu
f538169992
Restore OLDIFS expectedly
2014-01-03 01:47:10 +09:00
Yamashita Yuu
d03f290b5d
s/rbenv/pyenv/
2014-01-02 22:49:23 +09:00
Yamashita Yuu
8ddf8760d5
Import recent changes from rbenv 0.4.0
2014-01-02 22:45:02 +09:00
wmoxam
2f5d9a6f90
Fixes rbenv on OpenBSD and any other systems that don't support head -c
2013-12-31 01:44:36 -05:00
Mislav Marohnić
be5e1a4ded
Improve rbenv init
instructions for fish
...
Fish user config file `~/.config/fish/config.fish` loads for every
instance of fish shell, not just interactive ones. Since it's
unnecessary and dangerous to eval `rbenv init -` output in
non-interactive shells, wrap the invocation in a conditional that checks
if the current shell is interactive.
Fixes #501
2013-12-06 16:45:22 +01:00
Yamashita Yuu
5bff9c773a
Reliably detect parent shell in pyenv init
( fixes #93 )
...
Imported changes from sstephenson/rbenv#453 .
2013-12-26 13:48:43 +09:00
Yamashita Yuu
3d5156ed1d
v0.4.0-20131217
2013-12-17 11:46:44 +09:00
Yamashita Yuu
fe07deb193
v0.4.0-20131216
2013-12-16 13:51:48 +09:00
Tanix
fd3dd225ba
rewrite strip of PYENV_PREFIX_PATH in a single line
2013-12-12 23:05:31 +09:00
Tanix
140808e3d4
Fix pyenv-prefix to trim "/bin" in pyenv prefix system
2013-12-12 22:16:43 +09:00
Yamashita Yuu
5e20237f5b
v0.4.0-20131116
2013-11-16 19:29:30 +09:00
Mislav Marohnić
95a039aaaa
Revert "rbenv exec: avoid mutating PATH"
...
It was supposed to fix shelling out to Ruby but it in fact broke another
kind of shelling out to Ruby: invoking the `ruby` binary directly with
the `-S` flag.
Fixes #480
This reverts commit db143bb654
.
2013-11-03 12:18:28 +02:00
Mislav Marohnić
f1fdb9bbc8
Avoid invoking hash -r
in fish
...
It doesn't exist as a builtin, and it doesn't seem there is a way to
detect support for a shell builtin that is portable. So, just detect
fish and don't the rehash command at all.
Fixes #478
2013-10-31 20:18:14 +02:00
Mislav Marohnić
44e76bea23
Merge pull request #372 from sstephenson/exec-next
...
Change `exec` semantics to allow using rbenv from a ruby process
2013-10-29 18:53:33 -07:00
Mislav Marohnić
681435e0b4
Simplify version-file-read to avoid process substitution
...
Process substitution seems to be causing problems with some versions of
bash on specific systems.
Fixes #401
2013-10-30 02:33:49 +01:00