{"action":"created","issue":{"url":"https://api.github.com/repos/wayneeseguin/rvm/issues/3289","labels_url":"https://api.github.com/repos/wayneeseguin/rvm/issues/3289/labels{/name}","comments_url":"https://api.github.com/repos/wayneeseguin/rvm/issues/3289/comments","events_url":"https://api.github.com/repos/wayneeseguin/rvm/issues/3289/events","html_url":"https://github.com/wayneeseguin/rvm/issues/3289","id":56435566,"number":3289,"title":"Multiuser install not sourcing correct config files.","user":{"login":"lesleh","id":1039744,"avatar_url":"https://avatars.githubusercontent.com/u/1039744?v=3","gravatar_id":"","url":"https://api.github.com/users/lesleh","html_url":"https://github.com/lesleh","followers_url":"https://api.github.com/users/lesleh/followers","following_url":"https://api.github.com/users/lesleh/following{/other_user}","gists_url":"https://api.github.com/users/lesleh/gists{/gist_id}","starred_url":"https://api.github.com/users/lesleh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesleh/subscriptions","organizations_url":"https://api.github.com/users/lesleh/orgs","repos_url":"https://api.github.com/users/lesleh/repos","events_url":"https://api.github.com/users/lesleh/events{/privacy}","received_events_url":"https://api.github.com/users/lesleh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-03T20:54:21Z","updated_at":"2015-02-20T18:05:05Z","closed_at":null,"body":"When installing on Ubuntu in multiuser mode it adds a file to /etc/profile.d/rvm.sh which gets sourced for all login shells, but since rvm is added as a function, it applies only to the current shell, and not subshells. So opening the terminal app after logging in, RVM isn't available.\r\n\r\nI could set the terminal to open a login shell, and that would fix the problem, but it doesn't feel like the right solution. In Ubuntu there is a file called /etc/bash.bashrc which is sourced for all interactive shells, including login shells. Perhaps this would be a better place to set the rvm stuff in?\r\n\r\nI'm aware that I can just source /etc/profile.d/rvm.sh in my own .bashrc, and I have done, but it shouldn't be necessary as part of the standard install."},"comment":{"url":"https://api.github.com/repos/wayneeseguin/rvm/issues/comments/75288953","html_url":"https://github.com/wayneeseguin/rvm/issues/3289#issuecomment-75288953","issue_url":"https://api.github.com/repos/wayneeseguin/rvm/issues/3289","id":75288953,"user":{"login":"lesleh","id":1039744,"avatar_url":"https://avatars.githubusercontent.com/u/1039744?v=3","gravatar_id":"","url":"https://api.github.com/users/lesleh","html_url":"https://github.com/lesleh","followers_url":"https://api.github.com/users/lesleh/followers","following_url":"https://api.github.com/users/lesleh/following{/other_user}","gists_url":"https://api.github.com/users/lesleh/gists{/gist_id}","starred_url":"https://api.github.com/users/lesleh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesleh/subscriptions","organizations_url":"https://api.github.com/users/lesleh/orgs","repos_url":"https://api.github.com/users/lesleh/repos","events_url":"https://api.github.com/users/lesleh/events{/privacy}","received_events_url":"https://api.github.com/users/lesleh/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T18:05:05Z","updated_at":"2015-02-20T18:05:05Z","body":"It's actually worse than this. RVM assumes it's running in a login shell, and only adds the RVM function to .profile, and not to .bashrc, so it fails on non-login shells, which are the default terminal in Linux. OSX Terminal.app uses a login shell by default which is why it's not an issue there."}}