Merge pull request #663 from kevinburke/use-command
Use `command` to run rbenv rehash
This commit is contained in:
commit
efb187f26f
@ -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`)
|
||||||
|
@ -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" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user