Drummond Ogilvie
862be21a32
fish: use "set -gx" instead of "setenv" ( #218 )
...
Use `set -gx` instead of `setenv` for fish shell.
Fix test "activate if the first virtualenv is a virtualenv": it was asserting
the output was of bash form, but not specifying that in the test — it now does.
Fixes https://github.com/pyenv/pyenv-virtualenv/issues/216 .
2017-06-08 21:52:57 +02:00
Yamashita, Yuu
c64aebef08
1) Made --quiet as opposite of --verbose 2) Suppress warning about prompts on --quiet
2016-05-07 13:40:32 +00:00
puhitaku
62e32f9cb3
Fix test: add unsets
2016-04-15 11:56:28 +09:00
puhitaku
16597f0bb8
Fix test: deactivate
2016-04-13 11:40:17 +09:00
Yamashita, Yuu
13b7dc172a
need to use functions -q to check existence of the function in fish ( #136 )
2015-12-29 09:03:31 +00:00
Yamashita, Yuu
17d22e7a13
Add PYENV_VIRTUAL_ENV to check if the virtualenv has been activated via pyenv-virtualenv or not ( #128 )
2015-12-05 01:44:10 +00:00
Yamashita, Yuu
5f87786adf
Remove PYENV_DEACTIVATE ( fixes #121 )
...
This means that pyenv-virtualenv will not allow manual deactivation of
virtualenv if pyenv-virtualenv-init is enabled. This must be acceptable
since the activation of virtualenv is just setting of environment
variables in current implementation.
2015-11-23 13:33:31 +00:00
Yamashita, Yuu
83bc6a49e4
Restore variables set by activate script of virtualenv properly ( #150 )
...
The `activate` script does't export the variables of `_OLD_VIRTUAL_*`,
most the deactivation code needed to be moved to `sh-deactivate`.
2015-11-12 13:45:33 +00:00
Yamashita, Yuu
25bf4a6155
Unset environment variables to pass tests while activated
2015-11-12 00:27:02 +00:00
Yamashita, Yuu
bdd52a79cd
Revert PYENV_DEACTIVATE for backward compatibility
2015-11-08 08:34:43 +00:00
Yamashita, Yuu
d2edf5dddb
Fix tests
2015-11-08 06:32:34 +00:00
Yamashita, Yuu
0fa5de07c9
fix broken tests
2015-11-06 18:26:23 +00:00
Yamashita, Yuu
c6a705b1d9
Setup CONDA_DEFAULT_ENV only if conda executable exists
2015-11-05 01:49:04 +00:00
Yamashita, Yuu
64ceee5c8e
Stop using virtualenv's activate script ( #69 )
2015-11-04 13:50:17 +00:00
Yamashita, Yuu
cdbf7c9972
activate "root" environment of anaconda/miniconda if environment name is not given
2015-07-19 04:19:34 +09:00
Yamashita Yuu
191e806ba9
shell version set in activate should be unset in deactivate ( #61 )
2014-12-23 11:21:52 +09:00
Yamashita Yuu
a3c86f013b
Deactivate virtualenv even if it has been activated manually
2014-07-11 20:24:58 +09:00
Yamashita Yuu
aef2546319
Fix broken fish's if statement
2014-07-05 07:30:53 +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
58ed045796
s/QUIET/NOERROR/g
2014-07-04 22:10:35 +09:00
Yamashita Yuu
c2b5bbd19a
Fix fish syntax error at else
2014-07-04 20:51:31 +09:00
Yamashita Yuu
f0c400b669
Add --quiet option to activate and deactivate
2014-07-04 20:47:10 +09:00
Yamashita Yuu
5b3b909089
Exit as error on deactivation failures
2014-07-04 20:33:37 +09:00
Yamashita Yuu
0b5e0cf592
Unset shell version only if the deactivate has invoked
2014-07-04 20:27:55 +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
d9e3adc108
Performe as same as before v20140614 if pyenv virtualenv-init is not configured ( #26 )
2014-06-15 16:43:50 +09:00
Yamashita Yuu
8a837758dc
activate: invoke pyenv shell only if the arguments passed
2014-06-04 15:24:36 +09:00
Yamashita Yuu
26f2004abb
Add semicolon for the deactivate scripts for non-fish
2014-06-02 16:02:39 +09:00
Fotis Gimian
21a8745bcf
Updated tests to correctly pass for fish shell bug fix
2014-05-31 15:15:45 +10:00
Yamashita Yuu
503a51564e
Display error if pyenv activate was invoked as a command
2014-01-25 19:14:58 +09:00
Yamashita Yuu
d0685addc1
Add tests for activate and deactivate
2014-01-21 00:37:33 +09:00