0

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(){
    old=$IFS
    IFS=:
    printf "%s\n" $PATH
    IFS=$old
} 
  • /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.

  • 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
0

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.

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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