DaveG
DaveG

Reputation: 1203

RVM and bash_profile

I'm having problems installing RVM on my mac. I took my computer in to have the fan repaired so I'm using my wives trying to set up my environment to get some work done.

The problem I'm having is the bash_profile. Every time I add the function: [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function

and then reload the shell I get the following error:

-bash: export: -s': not a valid identifier -bash: export:/Users/Christine/.rvm/scripts/rvm': not a valid identifier -bash: export: `]]': not a valid identifier Christines-MacBook:~ Christine$

Here is my current environment:

Thanks in advance.

Upvotes: 1

Views: 11740

Answers (1)

Michelle Tilley
Michelle Tilley

Reputation: 159095

How accurate is your final bullet point? That is, does your bash_profile say:

export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/sbin:/usr/sbin[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function

or

export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/sbin:/usr/sbin
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function

They should be on separate lines, and based on your error message, I'd guess this is the problem.

Upvotes: 9

Related Questions