Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

when I typed $PATH i noticed a jungle

-bash: /Users/patrick/.rvm/gems/ruby-1.9.3-p194@Rails/bin:/Users/patrick/.rvm/gems/ruby-1.9.3-p194@global/bin:/Users/patrick/.rvm/rubies/ruby-1.9.3-p194/bin:/Users/patrick/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/patrick/.rvm/gems/ruby-1.9.3-p194@Rails/bin:/Users/patrick/.rvm/gems/ruby-1.9.3-p194@global/bin:/Users/patrick/.rvm/rubies/ruby-1.9.3-p194/bin:/Users/patrick/.rvm/bin:/opt/sm/bin:/opt/sm/pkg/active/bin:/opt/sm/pkg/active/sbin:/opt/sm/bin:/opt/sm/pkg/active/bin:/opt/sm/pkg/active/sbin: No such file or directory

how should I go about cleaning this as it seems to be everywhere

update: I added this function in .bash_profile, so it's more readable

function path(){
    printf "%s\n" $PATH
  • /Users/patrick/.rvm/gems/ruby-1.9.3-p194@Rails/bin
  • /Users/patrick/.rvm/gems/ruby-1.9.3-p194@global/bin
  • /Users/patrick/.rvm/rubies/ruby-1.9.3-p194/bin
  • /Users/patrick/.rvm/bin
  • /usr/bin
  • /bin
  • /usr/sbin
  • /sbin
  • /usr/local/bin
  • /usr/X11/bin
  • /Users/patrick/.rvm/gems/ruby-1.9.3-p194@Rails/bin
  • /Users/patrick/.rvm/gems/ruby-1.9.3-p194@global/bin
  • /Users/patrick/.rvm/rubies/ruby-1.9.3-p194/bin
  • /Users/patrick/.rvm/bin
  • /opt/sm/bin
  • /opt/sm/pkg/active/bin
  • /opt/sm/pkg/active/sbin
  • /opt/sm/bin
  • /opt/sm/pkg/active/bin
  • /opt/sm/pkg/active/sbin

I guess I have some duplicates due to rvm and jewelrybox.

share|improve this question
What are you trying to keep, what is your goal at the end, and since the folder is missing, is that intentional, or do you want it replaced? – soandos Jul 3 '12 at 21:25

check your .bash_profile for a line similar to this:

[[ -s "/Users/USER/.rvm/scripts/rvm" ]] && source "/Users/USER/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

and remove any duplicates of that, that should fix your rvm duplicates.

share|improve this answer
I fixed it by commenting out the rvm in both bashrc and bash_profile. for some reason rvm still shows up – gdi2290 Jul 3 '12 at 22:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.