打开终端和/或使用 IDE 编写代码时,我收到以下消息:
-bash: export PATH="/Users/ryananding/.rbenv/shims:${PATH}"
export RBENV_SHELL=bash
source '/usr/local/Cellar/rbenv/1.1.2/libexec/../completions/rbenv.bash'
command rbenv rehash 2>/dev/null
rbenv() {
local command
command="${1:-}"
if [ "$#" -gt 0 ]; then
shift
fi
case "$command" in
rehash|shell)
eval "$(rbenv "sh-$command" "$@")";;
*)
command rbenv "$command" "$@";;
esac
}: No such file or directory
Run Code Online (Sandbox Code Playgroud)
我已按照https://github.com/rbenv/rbenv上的说明进行操作,并且 rbenv doctor 没有显示任何错误。任何帮助,将不胜感激。