title: How do I resolve the message "No such file or directory" after installing rbenv on Mac OS?
body: <p>When opening my Terminal and/or using an IDE to write code, I get the following message:</p>
  
  <pre><code>-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&gt;/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
  </code></pre>
  
  <p>I have followed the instructions found on <a href="https://github.com/rbenv/rbenv" rel="nofollow noreferrer">https://github.com/rbenv/rbenv</a> and the rbenv doctor doesn't show any errors. Any help would be appreciated.</p>