diff --git a/libexec/rbenv-init b/libexec/rbenv-init index 13cd237c..d0027680 100755 --- a/libexec/rbenv-init +++ b/libexec/rbenv-init @@ -89,7 +89,7 @@ if [ -r "$completion" ]; then fi if [ -z "$no_rehash" ]; then - echo 'rbenv rehash 2>/dev/null' + echo 'command rbenv rehash 2>/dev/null' fi commands=(`rbenv-commands --sh`) diff --git a/test/init.bats b/test/init.bats index 32b32f60..0a46dd0d 100644 --- a/test/init.bats +++ b/test/init.bats @@ -14,7 +14,7 @@ load test_helper @test "auto rehash" { run rbenv-init - assert_success - assert_line "rbenv rehash 2>/dev/null" + assert_line "command rbenv rehash 2>/dev/null" } @test "setup shell completions" {