From 5f20bc258f313b3fcd55b0e6176836c229c96e98 Mon Sep 17 00:00:00 2001 From: McTavish McArdle Date: Sat, 28 May 2016 18:29:45 -0400 Subject: [PATCH] "." has been deprecated in the fish shell in favor of explicit "source" --- 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 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" {