{"action":"created","issue":{"url":"https://api.github.com/repos/sstephenson/rbenv/issues/508","labels_url":"https://api.github.com/repos/sstephenson/rbenv/issues/508/labels{/name}","comments_url":"https://api.github.com/repos/sstephenson/rbenv/issues/508/comments","events_url":"https://api.github.com/repos/sstephenson/rbenv/issues/508/events","html_url":"https://github.com/sstephenson/rbenv/issues/508","id":24673208,"number":508,"title":"Keeps adding ~/.rbenv dir even though RBENV_ROOT has been set to other dir","user":{"login":"hced","id":93350,"avatar_url":"https://avatars.githubusercontent.com/u/93350?v=3","gravatar_id":"","url":"https://api.github.com/users/hced","html_url":"https://github.com/hced","followers_url":"https://api.github.com/users/hced/followers","following_url":"https://api.github.com/users/hced/following{/other_user}","gists_url":"https://api.github.com/users/hced/gists{/gist_id}","starred_url":"https://api.github.com/users/hced/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hced/subscriptions","organizations_url":"https://api.github.com/users/hced/orgs","repos_url":"https://api.github.com/users/hced/repos","events_url":"https://api.github.com/users/hced/events{/privacy}","received_events_url":"https://api.github.com/users/hced/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2013-12-22T00:02:40Z","updated_at":"2015-01-15T21:51:54Z","closed_at":"2013-12-22T02:07:30Z","body":"I've installed `rbenv` via `brew` and per Homebrew's caveats I've appended the following to my `~/.zprofile`:\r\n\r\n````\r\n#\r\n# rbenv\r\n#\r\n\r\n# Enable shims and autocompletion (per Homebrew's caveat after installing rbenv and ruby-build)\r\nif which rbenv > /dev/null; then eval \"$(rbenv init -)\"; fi\r\n\r\n# Use Homebrew's directories rather than ~/.rbenv (also per Homebrew's caveats)\r\nexport RBENV_ROOT=/usr/local/var/rbenv\r\n````\r\n\r\nAfter removing `~/.rbenv`, this dir is still re-created each time I restart my shell. Can this be prevented somehow?"},"comment":{"url":"https://api.github.com/repos/sstephenson/rbenv/issues/comments/70169071","html_url":"https://github.com/sstephenson/rbenv/issues/508#issuecomment-70169071","issue_url":"https://api.github.com/repos/sstephenson/rbenv/issues/508","id":70169071,"user":{"login":"mislav","id":887,"avatar_url":"https://avatars.githubusercontent.com/u/887?v=3","gravatar_id":"","url":"https://api.github.com/users/mislav","html_url":"https://github.com/mislav","followers_url":"https://api.github.com/users/mislav/followers","following_url":"https://api.github.com/users/mislav/following{/other_user}","gists_url":"https://api.github.com/users/mislav/gists{/gist_id}","starred_url":"https://api.github.com/users/mislav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mislav/subscriptions","organizations_url":"https://api.github.com/users/mislav/orgs","repos_url":"https://api.github.com/users/mislav/repos","events_url":"https://api.github.com/users/mislav/events{/privacy}","received_events_url":"https://api.github.com/users/mislav/received_events","type":"User","site_admin":true},"created_at":"2015-01-15T21:51:54Z","updated_at":"2015-01-15T21:51:54Z","body":"@njvack Sure. In those cases, setting an explicit `RBENV_ROOT` to your preferred location before initializing rbenv is the key."}}