mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Merge pull request #663 from kevinburke/use-command
Use `command` to run rbenv rehash
This commit is contained in:
commit
efb187f26f
2 changed files with 2 additions and 2 deletions
|
@ -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`)
|
||||
|
|
|
@ -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" {
|
||||
|
|
Loading…
Reference in a new issue