From cbd9181b7ecc20c9005db533f13e6ccd1c789bd5 Mon Sep 17 00:00:00 2001 From: Sven Sternberger Date: Wed, 17 May 2017 10:20:51 +0200 Subject: [PATCH] Update __fish_print_hostnames.fish For Ubuntu the default global known host files are : /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2 --- share/functions/__fish_print_hostnames.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_print_hostnames.fish b/share/functions/__fish_print_hostnames.fish index 898512415..6175ccf12 100644 --- a/share/functions/__fish_print_hostnames.fish +++ b/share/functions/__fish_print_hostnames.fish @@ -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