From 71d2e4549e9a64961ddcf25c886758c52d2019ae Mon Sep 17 00:00:00 2001 From: "M. Smits" Date: Fri, 2 Oct 2020 03:28:29 +0200 Subject: [PATCH] Updated documentation pyenv init for fish shell comform to readme. (#1703) --- libexec/pyenv-init | 2 +- test/init.bats | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/pyenv-init b/libexec/pyenv-init index 659d1f4c9f..2bf7c56ac4 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 ead63d82d0..bb57dc3ec6 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" {