Comments (6)
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.
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.
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.
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.
ah yep, should have started there. Thanks for the suggestion!
from rbenv.
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)
- Windows with WSL2 manual git clone installation method, wrong line endings HOT 4
- `rbenv init` fails in parallel environment HOT 2
- rbenv-doctor script fails: `printc:3: bad substitution` HOT 2
- version `GLIBC_2.38' not found HOT 2
- `rbenv doctor` warns about multiple paths, one symlinks to the other HOT 1
- homebrew ruby: gem command not found
- Multiple instances of rbenv-install HOT 2
- `gem-rehash` inop for `bundle install`
- GOV UK
- Shim doesn't work for Ruby 3.3.0 HOT 5
- Error when use "gem" HOT 1
- readme installation guide missing step? HOT 1
- install ruby 3.2.0 rbenv/1.1.2/libexec/rbenv: No such file or directory
- bundle command does not do anything. HOT 2
- Issues with Ruby Version Not Matching Gemfile Specification and Bundler Path on macOS Ventura HOT 9
- Permission issues on MacOS besides set the ruby version with rbenv HOT 3
- Compile a list of all places where we change what is shown on the printed version of a page
- Zsh completions doesn't display list of available commands when pressing tab HOT 10
- Ruby
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rbenv.