dots/.bin/ssh-hosts

6 lines
116 B
Plaintext
Raw Normal View History

2023-10-21 16:52:37 +02:00
#!/usr/bin/env bash
2024-01-28 20:33:29 +01:00
ssh_hosts="$(grep -E 'Host [a-z0-9\-]*$' ~/.ssh/config | awk '{print $2}')"
2023-10-21 16:52:37 +02:00
echo "$ssh_hosts"