I'm trying to create my ~/.ssh/config file for simplify my work life on the server connection.
In Mavericks all worked properly and with the tab I was be able to autocomplete the hostname with file like this:
Host test-host-name
HostName 192.168.1.2
User root
The same configuration on Yosemite have a different behavior. When I type ssh t on the shell the tab does not autocomplete the hostname.
Do someone know if is something changed in Yosemite and now I need to do something to make it work?
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion. Could you elaborate on which version (that or yours) should be preferred and why? – Jan Nash Jun 17 '18 at 02:41ifabove. Additionally the$(brew --prefix)will make it work if your hombrew isn't installing to/usr/local. You should use the version posted as the answer. – luckydonald Dec 07 '20 at 12:58