summaryrefslogtreecommitdiff
path: root/.local/bin/sshchoose
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2021-05-01 11:12:23 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2021-05-01 11:12:23 -0400
commit16436494f6b7fff2eae8418746af01ee52f7565d (patch)
tree665608c8d4e858d757502e3795db3ef7821c4869 /.local/bin/sshchoose
parent9ed9de5006d437e126c5871dc0cf38a02825aabb (diff)
parenta8604b71a10edda8c08b909ce1fb63aca653d77e (diff)
Merge branch 'master' of git://git.chausse.xyz/dotfiles
Diffstat (limited to '.local/bin/sshchoose')
-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)"
+