mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-12 21:33:54 -05:00
Merge pull request #663 from kevinburke/use-command
Use `command` to run rbenv rehash
This commit is contained in:
@@ -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" {
|
||||||
|
|||||||
Reference in New Issue
Block a user