Giter VIP home page Giter VIP logo

Comments (6)

mislav avatar mislav commented on June 2, 2024 1

You could try taking out everything from your bash_profile that isn't related to rbenv, start a new shell, and see if it changes anything?

from rbenv.

mislav avatar mislav commented on June 2, 2024

Hi, this is odd, but it looks like your bash throws an error when loading rbenv's completion script. The script itself was unchanged for several years, and this raises a question of why is it erroring out for you and not for most people.

What is your bash version? bash --version

from rbenv.

jasonkarns avatar jasonkarns commented on June 2, 2024

I'd also double check that the hyphen/dash after 'init' isn't being replaced with a Unicode em dash or en dash or anything.

(Try copying/pasting from your rc file and run the bits init command (without the eval) to confirm the output is valid bash and not some other error output.

from rbenv.

stellarskye avatar stellarskye commented on June 2, 2024

Yea guessing there is something wonky in my environment

bash version GNU bash, version 3.2.57(1)-release (arm64-apple-darwin21)


Able to run rbenv init - bash directly, for some reason it runs yarn list as a result

msop:testing ssop$ rbenv init - bash
yarn list v1.22.22
warning Filtering by arguments is deprecated. Please use the pattern option instead.
✨  Done in 0.16s.
export PATH="/Users/ssop/.rbenv/shims:${PATH}"
export RBENV_SHELL=bash
source '/opt/homebrew/Cellar/rbenv/1.2.0/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
}

from rbenv.

stellarskye avatar stellarskye commented on June 2, 2024

ah yep, should have started there. Thanks for the suggestion!

from rbenv.

jasonkarns avatar jasonkarns commented on June 2, 2024

Would you mind still sharing what you discovered?

In case someone else also ends up with rbenv triggering yarn somehow. :)

(I'm side-glancing at rails and its yarn binstub for some reason.)

from rbenv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.