Added support for multiple aliases/hosts in single line for ssh completion and plugin

This commit is contained in:
Tomáš Havlas
2016-03-25 23:29:33 +01:00
parent 3923cf0276
commit b835b3d9ce
2 changed files with 3 additions and 3 deletions

View File

@@ -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
}