Update ssh.plugin.bash

pull/1493/head
Bingzhang Dai 2020-02-16 15:44:50 +08:00 committed by GitHub
parent bf7da247bf
commit f7cb2ef5c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ function add_ssh() {
function sshlist() { function sshlist() {
about 'list hosts defined in ssh config' about 'list hosts defined in ssh config'
group 'ssh group 'ssh'
awk '$1 ~ /Host$/ {for (i=2; i<=NF; i++) print $i}' ~/.ssh/config awk '$1 ~ /Host$/ {for (i=2; i<=NF; i++) print $i}' ~/.ssh/config
} }