mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
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:
parent
ec1f00e59b
commit
c9c802d3fc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue