Merge pull request #663 from kevinburke/use-command

Use `command` to run rbenv rehash
This commit is contained in:
Mislav Marohnić 2015-10-11 04:04:46 +02:00
commit efb187f26f
2 changed files with 2 additions and 2 deletions

View file

@ -89,7 +89,7 @@ if [ -r "$completion" ]; then
fi fi
if [ -z "$no_rehash" ]; then if [ -z "$no_rehash" ]; then
echo 'rbenv rehash 2>/dev/null' echo 'command rbenv rehash 2>/dev/null'
fi fi
commands=(`rbenv-commands --sh`) commands=(`rbenv-commands --sh`)

View file

@ -14,7 +14,7 @@ load test_helper
@test "auto rehash" { @test "auto rehash" {
run rbenv-init - run rbenv-init -
assert_success assert_success
assert_line "rbenv rehash 2>/dev/null" assert_line "command rbenv rehash 2>/dev/null"
} }
@test "setup shell completions" { @test "setup shell completions" {