mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-11 04:53:53 -05:00
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.
This commit is contained in:
committed by
Daniel Hahler
parent
252d6763f9
commit
862be21a32
@@ -86,8 +86,8 @@ fi
|
||||
case "$shell" in
|
||||
fish )
|
||||
cat <<EOS
|
||||
setenv PATH '${PYENV_VIRTUALENV_ROOT:-${PYENV_VIRTUALENV_INSTALL_PREFIX}}/shims' \$PATH;
|
||||
setenv PYENV_VIRTUALENV_INIT 1;
|
||||
set -gx PATH '${PYENV_VIRTUALENV_ROOT:-${PYENV_VIRTUALENV_INSTALL_PREFIX}}/shims' \$PATH;
|
||||
set -gx PYENV_VIRTUALENV_INIT 1;
|
||||
EOS
|
||||
;;
|
||||
* )
|
||||
|
||||
Reference in New Issue
Block a user