diff --git a/libexec/pyenv-init b/libexec/pyenv-init index b95c32da..9bdcb9b7 100755 --- a/libexec/pyenv-init +++ b/libexec/pyenv-init @@ -70,7 +70,7 @@ if [ -z "$print" ]; then echo case "$shell" in fish ) - echo 'status --is-interactive; and . (pyenv init -|psub)' + echo 'status --is-interactive; and source (pyenv init -|psub)' ;; * ) echo 'eval "$(pyenv init -)"' diff --git a/test/init.bats b/test/init.bats index bf0ccaab..c7026f65 100644 --- a/test/init.bats +++ b/test/init.bats @@ -53,7 +53,7 @@ OUT @test "fish instructions" { run pyenv-init fish assert [ "$status" -eq 1 ] - assert_line 'status --is-interactive; and . (pyenv init -|psub)' + assert_line 'status --is-interactive; and source (pyenv init -|psub)' } @test "option to skip rehash" {