Merge pull request #693 from tomashavlas/ssh-multihost
Added support for multiple aliases/hostnames in single line for ssh completion and plugin
This commit is contained in:
@@ -15,5 +15,5 @@ function sshlist() {
|
||||
about 'list hosts defined in ssh config'
|
||||
group 'ssh'
|
||||
|
||||
awk '$1 ~ /Host$/ { print $2 }' ~/.ssh/config
|
||||
awk '$1 ~ /Host$/ {for (i=2; i<=NF; i++) print $i}' ~/.ssh/config
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user