diff --git a/libexec/rbenv-init b/libexec/rbenv-init index 7fb7ccd1..cd327fad 100755 --- a/libexec/rbenv-init +++ b/libexec/rbenv-init @@ -70,7 +70,7 @@ if [ -z "$print" ]; then echo case "$shell" in fish ) - echo 'status --is-interactive; and source (rbenv init -|psub)' + echo 'status --is-interactive; and rbenv init - | source' ;; * ) echo 'eval "$(rbenv init -)"' @@ -114,7 +114,7 @@ function rbenv switch "\$command" case ${commands[*]} - source (rbenv "sh-\$command" \$argv|psub) + rbenv "sh-\$command" \$argv|source case '*' command rbenv "\$command" \$argv end diff --git a/test/init.bats b/test/init.bats index 6ea662b5..d780cc58 100755 --- a/test/init.bats +++ b/test/init.bats @@ -54,7 +54,7 @@ OUT @test "fish instructions" { run rbenv-init fish assert [ "$status" -eq 1 ] - assert_line 'status --is-interactive; and source (rbenv init -|psub)' + assert_line 'status --is-interactive; and rbenv init - | source' } @test "option to skip rehash" {