Add 'fzf-ssh' script
This commit is contained in:
3
.bin/fzf-ssh
Executable file
3
.bin/fzf-ssh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
ssh "$(ssh-hosts | fzf)"
|
||||||
5
.bin/ssh-hosts
Executable file
5
.bin/ssh-hosts
Executable 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"
|
||||||
Reference in New Issue
Block a user