Add 'fzf-ssh' script

This commit is contained in:
hektor committed 2023-10-21 16:52:37 +02:00
1 parent 0f8704bbb5
commit 0485edf197
2 files changed
+8

No files matched your search

Executable
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
ssh "$(ssh-hosts | fzf)"
Executable
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
ssh_hosts=$(grep -E 'Host [a-z0-9\-]*$' ~/.ssh/config | awk '{print $2}')
echo "$ssh_hosts"