{"action":"created","issue":{"url":"https://api.github.com/repos/rvm/rvm/issues/3212","labels_url":"https://api.github.com/repos/rvm/rvm/issues/3212/labels{/name}","comments_url":"https://api.github.com/repos/rvm/rvm/issues/3212/comments","events_url":"https://api.github.com/repos/rvm/rvm/issues/3212/events","html_url":"https://github.com/rvm/rvm/issues/3212","id":52423233,"number":3212,"title":"Feature request: rvm get head could check all $PATH items vs rvm default","user":{"login":"e2","id":150197,"avatar_url":"https://avatars.githubusercontent.com/u/150197?v=3","gravatar_id":"","url":"https://api.github.com/users/e2","html_url":"https://github.com/e2","followers_url":"https://api.github.com/users/e2/followers","following_url":"https://api.github.com/users/e2/following{/other_user}","gists_url":"https://api.github.com/users/e2/gists{/gist_id}","starred_url":"https://api.github.com/users/e2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e2/subscriptions","organizations_url":"https://api.github.com/users/e2/orgs","repos_url":"https://api.github.com/users/e2/repos","events_url":"https://api.github.com/users/e2/events{/privacy}","received_events_url":"https://api.github.com/users/e2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":50,"created_at":"2014-12-18T22:14:08Z","updated_at":"2016-01-11T18:46:46Z","closed_at":"2014-12-19T19:32:45Z","body":"TL;DR - this feature would have saved me lots of time and frustration\r\n\r\nSymptoms (which I didn't know how to debug):\r\n\r\n* rvm seemed correctly set up (login shells, zsh, versions, default, updated, rvm as shell function)\r\n* `ruby -v` correctly reported 2.1.5\r\n* `rvm list` showed 2.1.5 as default (`*` character)  ... but it was not selected as current (no `=` character)\r\n* `rvm use default` fixed things, but new tmux sessions had the same problem \r\n* `rvm get head` (or stable) didn't help or even report issues\r\n\r\nThe cause: I had pasted my path into `~/.zshrc` like so:\r\n\r\n```bash\r\nexport PATH=\"/home/me/.rvm/gems/ruby-2.1.5/bin:/home/me/.rvm/gems/ruby-2.1.5@global/bin:/home/me/.rvm/rubies/ruby-2.1.5/bin:/home/me/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/heroku/bin:/home/me/.local/bin:/home/me/.rvm/bin\"\r\n```\r\n\r\nI think this should have caused at least an error because:\r\n- it should have been strange for RVM to have a path that matched a default, but not have a default actually selected (my system Ruby is 1.9.3).\r\n\r\nAfter browsing through rvm code I finally worked this out just by \"bisecting\" my zsh config (commenting thing out until it still worked or stopped).\r\n\r\nI honestly would have preferred for RVM to have failed with a syntax error (which I could deal with).\r\n\r\nBut I'm glad I sorted this out, so I'm sharing this."},"comment":{"url":"https://api.github.com/repos/rvm/rvm/issues/comments/170649608","html_url":"https://github.com/rvm/rvm/issues/3212#issuecomment-170649608","issue_url":"https://api.github.com/repos/rvm/rvm/issues/3212","id":170649608,"user":{"login":"Arcrammer","id":8358956,"avatar_url":"https://avatars.githubusercontent.com/u/8358956?v=3","gravatar_id":"","url":"https://api.github.com/users/Arcrammer","html_url":"https://github.com/Arcrammer","followers_url":"https://api.github.com/users/Arcrammer/followers","following_url":"https://api.github.com/users/Arcrammer/following{/other_user}","gists_url":"https://api.github.com/users/Arcrammer/gists{/gist_id}","starred_url":"https://api.github.com/users/Arcrammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arcrammer/subscriptions","organizations_url":"https://api.github.com/users/Arcrammer/orgs","repos_url":"https://api.github.com/users/Arcrammer/repos","events_url":"https://api.github.com/users/Arcrammer/events{/privacy}","received_events_url":"https://api.github.com/users/Arcrammer/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T18:46:46Z","updated_at":"2016-01-11T18:46:46Z","body":"Does this mean it worked? I'm sort of lost right now."}}