From 862be21a32dd00236563c38e778842c29b61639d Mon Sep 17 00:00:00 2001 From: Drummond Ogilvie Date: Thu, 8 Jun 2017 20:52:57 +0100 Subject: [PATCH] fish: use "set -gx" instead of "setenv" (#218) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- bin/pyenv-sh-activate | 12 ++++++------ bin/pyenv-sh-deactivate | 4 ++-- bin/pyenv-virtualenv-init | 4 ++-- test/activate.bats | 30 +++++++++++++++--------------- test/conda-activate.bats | 6 +++--- test/conda-deactivate.bats | 4 ++-- test/deactivate.bats | 20 ++++++++++---------- test/init.bats | 4 ++-- 8 files changed, 42 insertions(+), 42 deletions(-) diff --git a/bin/pyenv-sh-activate b/bin/pyenv-sh-activate index ec3454a..6586de8 100755 --- a/bin/pyenv-sh-activate +++ b/bin/pyenv-sh-activate @@ -146,8 +146,8 @@ if [ -z "$no_shell" ]; then case "$shell" in fish ) cat <