Update __fish_print_hostnames.fish

For Ubuntu the default global known host files are :
/etc/ssh/ssh_known_hosts
/etc/ssh/ssh_known_hosts2
(cherry picked from commit cbd9181b7e)
This commit is contained in:
Sven Sternberger 2017-05-17 10:20:51 +02:00 committed by David Adam
parent ec1f00e59b
commit c9c802d3fc

View file

@ -18,7 +18,7 @@ function __fish_print_hostnames -d "Print a list of known hostnames"
end
# Check hosts known to ssh
set -l known_hosts ~/.ssh/known_hosts{,2} /etc/ssh/known_hosts{,2} # Yes, seriously - the default specifies both with and without "2"
set -l known_hosts ~/.ssh/known_hosts{,2} /etc/ssh/{,ssh_}known_hosts{,2} # Yes, seriously - the default specifies both with and without "2"
# Check default ssh configs
set -l ssh_config
# Get alias and commandline options