Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Code Salley
Code Salley

Posted on

     

Rbenv local and Rbenv Global

Newbies like myself often get confused about the difference between rbenv local and rbenv global,

Rbenv local
Enter fullscreen modeExit fullscreen mode

As the name describes, changes the ruby version in the.ruby-version. file. stile the global ruby version remains the same.

Rbenv global
Enter fullscreen modeExit fullscreen mode

changes the ruby inside the rbenv ruby version file in~/.rbenv/version.

To undo any of these changes, just add the--unset flag to the command

Top comments(1)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
ashraffares profile image
Fares Ashraf
  • Joined

this was super useful to me because I was working on project that required 2.7 ruby version and everytime I need to change the version I change it in local but know thanks to Salley I gonna use the Rbenv global.

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Software developer. Hacking with ruby
  • Location
    Nalerigu Ghana
  • Work
    Software developer
  • Joined

More fromCode Salley

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp