summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2021-03-17 22:53:59 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2021-03-17 22:53:59 -0400
commit60c0561a1ab38b27c85fa73220a04d6dce36ca93 (patch)
treedcf43e689eb22f4476f6596440f6ec7f43c63a07
parent55f53d6de291f21d67506118e9b3fd1ddfe28589 (diff)
add sshchoose script
-rwxr-xr-x.local/bin/sshchoose6
1 files changed, 6 insertions, 0 deletions
diff --git a/.local/bin/sshchoose b/.local/bin/sshchoose
new file mode 100755
index 0000000..6b884c6
--- /dev/null
+++ b/.local/bin/sshchoose
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+choice="$(pass ls ssh/ | sed '1d;s/^.*\s//g' | fzf)"
+
+ssh "$(pass ssh/$choice)"
+