Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7169233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:56:44+00:00 2026-05-28T14:56:44+00:00

I am installing Ruby on Rails on Mac OS X. The tutorial I am

  • 0

I am installing Ruby on Rails on Mac OS X. The tutorial I am following says to add:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"

to ~/.bash_profile.

What does this line do?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T14:56:46+00:00Added an answer on May 28, 2026 at 2:56 pm

    [[ -s "$HOME/.rvm/scripts/rvm" ]]

    This portion is a test condition ([[ is the new test command). -s returns TRUE if the file rvm present over at $HOME/.rvm/scripts/ location exists and is of size greater than zero.

    &&

    This is a logical and operator. It executes the statement on the right IF AND ONLY IF statement on the left returns true.

    . "$HOME/.rvm/scripts/rvm"

    . is short for source command. You are sourcing the file in your current shell and not forking a new sub-shell

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to install Ruby on Rails using RVM. I am following this guide
I followed this tutorial http://pragmaticstudio.com/blog/2010/9/23/install-rails-ruby-mac to install Ruby on Rails on Mac OS X
I have been following the tutorial to install Ruby on Rails on the mac
I am following the Ruby on Rails tutorial by Michael Hartl http://ruby.railstutorial.org/ I installed
Installing Rails with RVM on Snow Leopard turned up this error during the installation
I'm having significant trouble installing Ruby on Rails. I installed Ruby with apt-get When
After, reading and understanding Dan Benjamin's post about installing Ruby, Rails, etc. on OSX
Installing Merb on Ruby Enterprise Edition (OS X) throws this error, any ideas? sudo
I'm installing ruby on rails on my OS X 10.7 machine and trying to
I'm installing Ruby 1.9 and Rails 2.3 in Ubuntu 9.04. I want to learn

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.