mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 13:08:49 +00:00
parent
3b2de931cd
commit
e7f8e58be9
1 changed files with 4 additions and 1 deletions
|
@ -19,7 +19,10 @@ function __fish_print_hostnames -d "Print a list of known hostnames"
|
|||
|
||||
# Check hosts known to ssh.
|
||||
# Yes, seriously - the default specifies both with and without "2".
|
||||
set -l known_hosts ~/.ssh/known_hosts{,2} /etc/ssh/{,ssh_}known_hosts{,2}
|
||||
# Termux puts these in the android data directory if not rooted.
|
||||
# Unfortunately there doesn't seem to be a way to get that path without hardcoding it.
|
||||
# Also, some people might use /usr/local/etc.
|
||||
set -l known_hosts ~/.ssh/known_hosts{,2} {/data/data/com.termux/files,/usr/local,}/etc/ssh/{,ssh_}known_hosts{,2}
|
||||
# Check default ssh configs.
|
||||
set -l ssh_config
|
||||
# Get alias and commandline options.
|
||||
|
|
Loading…
Reference in a new issue