diff --git a/bin/pyenv-virtualenv-init b/bin/pyenv-virtualenv-init index 289160e..834a9fd 100755 --- a/bin/pyenv-virtualenv-init +++ b/bin/pyenv-virtualenv-init @@ -71,7 +71,7 @@ if [ -z "$print" ]; then echo case "$shell" in fish ) - echo 'status --is-interactive; and . (pyenv virtualenv-init -|psub)' + echo 'status --is-interactive; and source (pyenv virtualenv-init -|psub)' ;; * ) echo 'eval "$(pyenv virtualenv-init -)"' diff --git a/test/init.bats b/test/init.bats index 29f2910..8c1f899 100644 --- a/test/init.bats +++ b/test/init.bats @@ -42,7 +42,7 @@ load test_helper @test "fish instructions" { run pyenv-virtualenv-init fish assert [ "$status" -eq 1 ] - assert_output_contains 'status --is-interactive; and . (pyenv virtualenv-init -|psub)' + assert_output_contains 'status --is-interactive; and source (pyenv virtualenv-init -|psub)' } @test "outputs bash-specific syntax" {