diff --git a/libexec/rbenv-init b/libexec/rbenv-init index 0b2c13aa..867b3bb8 100755 --- a/libexec/rbenv-init +++ b/libexec/rbenv-init @@ -88,7 +88,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 95db0fec..b59b8086 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" {