{"action":"created","issue":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/1028","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/1028/labels{/name}","comments_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/1028/comments","events_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/1028/events","html_url":"https://github.com/fish-shell/fish-shell/issues/1028","id":20567908,"number":1028,"title":"rbenv completion is weird when ruby-build is not installed","user":{"login":"mdesantis","id":283320,"avatar_url":"https://avatars.githubusercontent.com/u/283320?v=3","gravatar_id":"","url":"https://api.github.com/users/mdesantis","html_url":"https://github.com/mdesantis","followers_url":"https://api.github.com/users/mdesantis/followers","following_url":"https://api.github.com/users/mdesantis/following{/other_user}","gists_url":"https://api.github.com/users/mdesantis/gists{/gist_id}","starred_url":"https://api.github.com/users/mdesantis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdesantis/subscriptions","organizations_url":"https://api.github.com/users/mdesantis/orgs","repos_url":"https://api.github.com/users/mdesantis/repos","events_url":"https://api.github.com/users/mdesantis/events{/privacy}","received_events_url":"https://api.github.com/users/mdesantis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fish-shell/fish-shell/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/fish-shell/fish-shell/labels/completions","name":"completions","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/fish-shell/fish-shell/milestones/4","html_url":"https://github.com/fish-shell/fish-shell/milestones/fish-future","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/milestones/4/labels","id":130257,"number":4,"title":"fish-future","description":"These are bugs that are not targeted for an upcoming release. After a release, we will reexamine these bugs and pull any in that we think are good targets.\r\n\r\nIf you can provide a fix for a bug in this milestone, we'll generally accept it for the next release even if the bug is not in the release.","creator":{"login":"ridiculousfish","id":920838,"avatar_url":"https://avatars.githubusercontent.com/u/920838?v=3","gravatar_id":"","url":"https://api.github.com/users/ridiculousfish","html_url":"https://github.com/ridiculousfish","followers_url":"https://api.github.com/users/ridiculousfish/followers","following_url":"https://api.github.com/users/ridiculousfish/following{/other_user}","gists_url":"https://api.github.com/users/ridiculousfish/gists{/gist_id}","starred_url":"https://api.github.com/users/ridiculousfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ridiculousfish/subscriptions","organizations_url":"https://api.github.com/users/ridiculousfish/orgs","repos_url":"https://api.github.com/users/ridiculousfish/repos","events_url":"https://api.github.com/users/ridiculousfish/events{/privacy}","received_events_url":"https://api.github.com/users/ridiculousfish/received_events","type":"User","site_admin":false},"open_issues":396,"closed_issues":121,"state":"open","created_at":"2012-06-11T02:25:13Z","updated_at":"2015-09-10T00:05:05Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2013-10-05T17:36:52Z","updated_at":"2015-09-10T08:32:44Z","closed_at":"2015-09-10T00:05:05Z","body":"I have fish shell installed from package repository and rbenv installed in my user home (not from package repository) and ruby-build installed as rbenv plugin (so the `ruby-build` command doesn't exist).\r\n\r\nWhen I tab `rbenv install`:\r\n\r\n```\r\n$ rbenv install<tab> Il programma \"ruby-build\" non è attualmente installato. È possibile installarlo digitando:\r\nsudo apt-get install ruby-build\r\n/usr/share/fish/completions/rbenv.fish (line 31): ruby-build --definitions\r\n                                                  ^\r\nin function “__fish_rbenv_official_rubies”,\r\n\tcalled on standard input,\r\n\r\nin command substitution\r\n\tcalled on standard input,\r\n\r\n\r\n1.8.6-p383  1.9.2-p0    1.9.3-p385      2.0.0-rc2       jruby-1.7.0-preview1  rbx-2.0.0-dev    \r\n...\r\n```\r\n\r\nAs you see, it displays a Ubuntu message telling me I should install `ruby-build`; then the completion works (I guess because of the user local rbenv which loads its completion).\r\n\r\nI tried to mitigate the issue using the `command --erase` option; but without success. Isn't that option for me? How should it be used?"},"comment":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/comments/139166731","html_url":"https://github.com/fish-shell/fish-shell/issues/1028#issuecomment-139166731","issue_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/1028","id":139166731,"user":{"login":"faho","id":5185367,"avatar_url":"https://avatars.githubusercontent.com/u/5185367?v=3","gravatar_id":"","url":"https://api.github.com/users/faho","html_url":"https://github.com/faho","followers_url":"https://api.github.com/users/faho/followers","following_url":"https://api.github.com/users/faho/following{/other_user}","gists_url":"https://api.github.com/users/faho/gists{/gist_id}","starred_url":"https://api.github.com/users/faho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faho/subscriptions","organizations_url":"https://api.github.com/users/faho/orgs","repos_url":"https://api.github.com/users/faho/repos","events_url":"https://api.github.com/users/faho/events{/privacy}","received_events_url":"https://api.github.com/users/faho/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T08:32:44Z","updated_at":"2015-09-10T08:32:44Z","body":"So you get output like\r\n\r\n```\r\n  2\r\n  3\r\n  4\r\n```\r\n\r\nwhich results in completion options looking like\r\n\r\n```\r\n\\ \\ 2\r\n\\ \\ 3\r\n\\ \\ 4\r\n```\r\n\r\n?"}}