Josh Hagins
5953ddaf64
Ignore failure of pyenv activate
...
When the current pyenv environment is not a virtualenv, this line
exits with a return code of 1. This is annoying for those of us
who report the last return code in our own PROMPT_COMMAND, so
ignore the output of `pyenv activate` if we're not currently using
a virtualenv.
2015-03-18 22:30:19 -04:00
Tony Wang
e04a6f88fe
fix wrong output in test in fish, refs 240a1de
...
"(any command)" is not supported in test in fish, we have to set a
variable and then use that
2015-01-06 11:10:43 +08:00
Tony Wang
240a1de6e5
fix warns for virtualenv-init corner case on fish
...
The situation is when in a directory containing python binary,
`pyenv prefix' will return empty (caused by `pyenv which' returning
"./python"). This change adds quotes for `test', otherwise `test' will
warn about missing argument.
2015-01-05 23:23:43 +08:00
Yamashita Yuu
ad0fa82329
Fix broken fish test ( #60 )
2014-12-16 23:04:35 +09:00
Yamashita Yuu
e774464ced
ignore error from pyenv-version-name since it might fail if there is configuration error ( yyuu/pyenv#291 )
2014-12-14 14:15:18 +09:00
Yamashita Yuu
58e93f9e0d
Fix test which has broken by 2060c43387
2014-10-27 11:04:42 +09:00
Yamashita Yuu
e655abbd41
Fix broken tests ( #47 )
2014-10-12 21:37:10 +09:00
Pedro Algarvio
81736da905
Indent to 2 spaces.
2014-08-13 19:51:22 +01:00
Pedro Algarvio
7304608e0f
Adapt tests to new output
2014-08-13 03:58:32 +01:00
Yamashita Yuu
6b4d6249a0
No need to use eval in fish init script
2014-07-05 07:27:12 +09:00
Yamashita Yuu
0de2cdbbc3
Should not persist PYENV_DEACTIVATE after failed attempt to deactivate and activate
2014-07-05 06:53:46 +09:00
Yamashita Yuu
abfda4bac9
Fix issues with manual activation of virtual environments ( #34 )
2014-07-04 22:55:06 +09:00
Yamashita Yuu
d4ce853e94
Display information on automatic (de)?activation
2014-07-04 22:44:05 +09:00
Yamashita Yuu
08b4c94f85
Use PYENV_DEACTIVATE to store which virtualenv has been deactivated ( #32 )
2014-06-30 23:03:37 +09:00
Yamashita Yuu
7079cbe979
Fix broken setenv in pyenv-virtualenv-init
2014-06-30 21:35:53 +09:00
Yamashita Yuu
6761ed09cd
Add test for pyenv-virtualenv-init
2014-06-04 20:48:22 +09:00