Fix not including main ssh config in host names search

This commit is contained in:
Dale Eidd 2017-06-06 00:37:39 +08:00 committed by Fabian Homborg
parent 6161f54111
commit 5b3904e66b

View file

@ -74,7 +74,7 @@ function __fish_print_hostnames -d "Print a list of known hostnames"
end
_recursive $ssh_config
end
set -l ssh_configs (_ssh_include /etc/ssh/ssh_config) (_ssh_include $ssh_config)
set -l ssh_configs /etc/ssh/ssh_config (_ssh_include /etc/ssh/ssh_config) $ssh_config (_ssh_include $ssh_config)
for file in $ssh_configs
if test -r $file