{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew-versions/issues/1063","repository_url":"https://api.github.com/repos/Homebrew/homebrew-versions","labels_url":"https://api.github.com/repos/Homebrew/homebrew-versions/issues/1063/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew-versions/issues/1063/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew-versions/issues/1063/events","html_url":"https://github.com/Homebrew/homebrew-versions/issues/1063","id":120677387,"number":1063,"title":"bash-completions2 no longer completing ssh hosts from known_hosts","user":{"login":"jarshwah","id":541083,"avatar_url":"https://avatars.githubusercontent.com/u/541083?v=3","gravatar_id":"","url":"https://api.github.com/users/jarshwah","html_url":"https://github.com/jarshwah","followers_url":"https://api.github.com/users/jarshwah/followers","following_url":"https://api.github.com/users/jarshwah/following{/other_user}","gists_url":"https://api.github.com/users/jarshwah/gists{/gist_id}","starred_url":"https://api.github.com/users/jarshwah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarshwah/subscriptions","organizations_url":"https://api.github.com/users/jarshwah/orgs","repos_url":"https://api.github.com/users/jarshwah/repos","events_url":"https://api.github.com/users/jarshwah/events{/privacy}","received_events_url":"https://api.github.com/users/jarshwah/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-07T00:34:33Z","updated_at":"2016-05-29T11:44:32Z","closed_at":null,"body":"Since I removed bash-completions and installed bash-completions2, it seems I can no longer auto complete hostnames from my `~/.ssh/known_hosts` file. If I manually source the ssh completion script though it works fine. I'm unsure if there are other completions that are not working fine or not.\r\n\r\nThe ssh completer (without being manually source) still completes hostnames from my ssh config file, and all the regular commands and switches.\r\n\r\nThis is from my bash_profile:\r\n\r\n```\r\n# install brew bash_completions\r\nif [ -f $(brew --prefix)/etc/bash_completion ]; then\r\n    source $(brew --prefix)/etc/bash_completion\r\nfi\r\nif [ -f $(brew --prefix)/Library/Contributions/brew_bash_completion.sh ]; then\r\n    source $(brew --prefix)/Library/Contributions/brew_bash_completion.sh\r\nfi\r\nif [ -f $(brew --prefix)/share/bash-completion/bash_completion ]; then\r\n    source $(brew --prefix)/share/bash-completion/bash_completion\r\nfi\r\n```\r\n\r\nI've tried commenting out the first two sources of completions, and no improvement.\r\n\r\nVersions:\r\n\r\n```\r\nsmeatonj /usr/local/share/bash-completion/completions (master) [$]\r\n$ ls -la ssh\r\nlrwxr-xr-x 1 smeatonj admin 76 Dec  4 12:02 ssh -> ../../../Cellar/bash-completion2/2.1_2/share/bash-completion/completions/ssh\r\n\r\n$ brew --version\r\n0.9.5 (git revision 12f42a; last commit 2015-12-06)\r\n\r\n$ bash --version\r\nGNU bash, version 4.3.42(1)-release (x86_64-apple-darwin14.5.0)\r\nCopyright (C) 2013 Free Software Foundation, Inc.\r\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\r\n\r\nThis is free software; you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law.\r\n\r\n$ which bash\r\n/usr/local/bin/bash\r\n\r\n$ brew doctor\r\nPlease note that these warnings are just used to help the Homebrew maintainers\r\nwith debugging if you file an issue. If everything you use Homebrew for is\r\nworking fine: please don't worry and just ignore them. Thanks!\r\n\r\nWarning: Your XQuartz (2.7.4) is outdated\r\nPlease install XQuartz 2.7.8:\r\n  https://xquartz.macosforge.org\r\n\r\nWarning: Putting non-prefixed findutils in your path can cause python builds to fail.\r\n\r\nWarning: You have a curlrc file\r\nIf you have trouble downloading packages with Homebrew, then maybe this\r\nis the problem? If the following command doesn't work, then try removing\r\nyour curlrc:\r\n  curl https://github.com"},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew-versions/issues/comments/222356345","html_url":"https://github.com/Homebrew/homebrew-versions/issues/1063#issuecomment-222356345","issue_url":"https://api.github.com/repos/Homebrew/homebrew-versions/issues/1063","id":222356345,"user":{"login":"jarshwah","id":541083,"avatar_url":"https://avatars.githubusercontent.com/u/541083?v=3","gravatar_id":"","url":"https://api.github.com/users/jarshwah","html_url":"https://github.com/jarshwah","followers_url":"https://api.github.com/users/jarshwah/followers","following_url":"https://api.github.com/users/jarshwah/following{/other_user}","gists_url":"https://api.github.com/users/jarshwah/gists{/gist_id}","starred_url":"https://api.github.com/users/jarshwah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarshwah/subscriptions","organizations_url":"https://api.github.com/users/jarshwah/orgs","repos_url":"https://api.github.com/users/jarshwah/repos","events_url":"https://api.github.com/users/jarshwah/events{/privacy}","received_events_url":"https://api.github.com/users/jarshwah/received_events","type":"User","site_admin":false},"created_at":"2016-05-29T11:44:32Z","updated_at":"2016-05-29T11:44:32Z","body":"For what it's worth I discovered that an alias I had (it might have been named ssh) was interfering with the completion. Removing that alias sorted the issue."}}
{"actor":{"display_login":"jarshwah"}}