Add 'fzf-ssh' script
parent
0f8704bbb5
commit
0485edf197
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
ssh "$(ssh-hosts | fzf)"
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
ssh_hosts=$(grep -E 'Host [a-z0-9\-]*$' ~/.ssh/config | awk '{print $2}')
|
||||||
|
|
||||||
|
echo "$ssh_hosts"
|
Loading…
Reference in New Issue