-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eval "$(rbenv init -)" every time I start on Mac OS X 10.11 El Capitan #815
Comments
If you followed the guide in the Readme, how does your |
@mislav, i followed this part of the guide: Homebrew on Mac OS X As an alternative to installation via GitHub checkout, you can install rbenv and ruby-build using the Homebrew package manager on Mac OS X:
Afterwards you'll still need to add eval "$(rbenv init -)" to your profile as stated in the caveats. You'll only ever have to do this once. Why it doesn't work? |
What exactly doesn't work? Can you paste us the output of:
|
grep: /Users/myusername/.bash_profile: No such file or directory |
So one of the installation steps included running this:
This will create a |
Hello @mislav My output from grep shows my multiple attempts to append:
But I still have the:
every time I open my iTerm. Can you guide me in anyway? Thank you |
I also appended to: |
@egdevelops If you're using zsh as your login shell (default shell when you open iTerm), then changing For zsh, ensure that your export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)" Then restart your shell. You should be able to run rbenv commands such as:
|
Closing since this thread is about configuration issue on users' side and not a bug with rbenv. |
@egg-develops Did you ever find a solution? My terminal has the same output every time it opens:
My .bash_profile:
|
@barronlroth You have 3 lines in your bash profile that call You can keep this line, but remove other invocations:
|
@mislav That's the fix! Thank you brother. |
Is it still necessary or desirable to have this in .bash_profile? eval "$(rbenv init -)" The Homebrew section of the docs at https://github.com/rbenv/rbenv
Running Load rbenv automatically by appending
the following to ~/.bash_profile:
eval "$(rbenv init -)" but it doesn't say why you might want to load rbenv automatically, or what will happen if you do not put that in your .bash_profile. I'd like to remove it if it is not necessary or desirable. much thx |
Homebrew prints the "Caveats" section when you install its
It means that you only have to run it once manually to receive instructions to configure your |
ah, much thx
Great! Thx for the pointer. Not having to do |
caveats are removed from forumla with Homebrew/homebrew-core@ea9dd0e |
I have the same problem. and output from export PATH="/Users/rahulsharma/.rbenv/shims:${PATH}" case "$command" in Thanks in advance |
This fuck*ng worked for me. Sorry about the bad language, but it is appropriate since I have been struggling with this for a few hours. |
What should I do if
I did check the bash profile and the |
I found this video quite useful! |
Why, after followin your guide in the Readme, on Mac OSX 10.11 El Capitan I have to initialize every time Rbenv with this command?
After reboot my Mac have the standard ruby -v and my $PATH is the standard PATH:
The text was updated successfully, but these errors were encountered: