diff --git a/libexec/pyenv-init b/libexec/pyenv-init index 659d1f4c..2bf7c56a 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 source (pyenv init -|psub)' + echo 'pyenv init - | source' ;; * ) echo 'eval "$(pyenv init -)"' diff --git a/test/init.bats b/test/init.bats index ead63d82..bb57dc3e 100755 --- 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 source (pyenv init -|psub)' + assert_line 'pyenv init - | source' } @test "option to skip rehash" {