mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
parent
749f21e482
commit
bdcc2e1790
2 changed files with 3 additions and 6 deletions
|
@ -83,11 +83,8 @@ if [[ ":${PATH}:" != *:"${RBENV_ROOT}/shims":* ]]; then
|
||||||
echo 'export PATH="'${RBENV_ROOT}'/shims:${PATH}"'
|
echo 'export PATH="'${RBENV_ROOT}'/shims:${PATH}"'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$shell" in
|
completion="${root}/completions/rbenv.${shell}"
|
||||||
bash | zsh )
|
[ -r "$completion" ] && echo "source '$completion'"
|
||||||
echo "source \"$root/completions/rbenv.${shell}\""
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if [ -z "$no_rehash" ]; then
|
if [ -z "$no_rehash" ]; then
|
||||||
echo 'rbenv rehash 2>/dev/null'
|
echo 'rbenv rehash 2>/dev/null'
|
||||||
|
|
|
@ -22,7 +22,7 @@ load test_helper
|
||||||
root="$(cd $BATS_TEST_DIRNAME/.. && pwd)"
|
root="$(cd $BATS_TEST_DIRNAME/.. && pwd)"
|
||||||
run rbenv-init -
|
run rbenv-init -
|
||||||
assert_success
|
assert_success
|
||||||
assert_line 'source "'${root}'/libexec/../completions/rbenv.bash"'
|
assert_line "source '${root}/libexec/../completions/rbenv.bash'"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "option to skip rehash" {
|
@test "option to skip rehash" {
|
||||||
|
|
Loading…
Reference in a new issue