The manual configuration of ':completion:*:hosts' causes some problems
(e.g. issue #1337), and misses useful information (especially from
~/.ssh/known_hosts; issue #690 and issue #1009).
The best option appears to be using zsh's default configuration for
':completion:*:hosts'.
While rebasing this for a new pull request (#1498 got closed by accident
and then requests to re-open it got ignored), it also drops the `users
off` setting: completion of user names can be useful, and the commit
adding it (c4434d2) does not state why.
Using the correct_all option is too distracting, and needs a lot of
`nocorrect` aliases to work around this.
Using only "correct" to correct the command itself is more friendly.
`hub` is crashing for me on a old CentOS setup with
"undefined method `shelljoin'".
On first use of the `git` function it is now checked if
`hub --version` returns successfully.
I've run into the issue where a stripped down container had no Ruby
installed, which caused `hub` to fail.
Therefore I've added an extra check to verify that `ruby` is in the
commands list before setting up this alias/function.