summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2020-04-20 05:42:15 -0400
committerJesse Luehrs <doy@tozt.net>2020-04-20 05:44:38 -0400
commit6efd5fe5afd46e8623d70201e8907eb06372eb7a (patch)
treebb314c3d7a7383f7d3df40e12236ce3cfc8d249e /bin
parent6dce036874d75b2eca2ac48047120b571590de2c (diff)
downloadconf-6efd5fe5afd46e8623d70201e8907eb06372eb7a.tar.gz
conf-6efd5fe5afd46e8623d70201e8907eb06372eb7a.zip
switch to rbw
Diffstat (limited to 'bin')
-rwxr-xr-xbin/hush/p2
-rwxr-xr-xbin/hush/ssh-askpass2
-rwxr-xr-xbin/hush/sudo-askpass2
-rwxr-xr-xbin/on-lock1
4 files changed, 4 insertions, 3 deletions
diff --git a/bin/hush/p b/bin/hush/p
index c2cbc9a..1b281ec 100755
--- a/bin/hush/p
+++ b/bin/hush/p
@@ -2,4 +2,4 @@
set -eu
set -o pipefail
-pass git ls-files | grep '\.gpg$' | sed 's/\.gpg$//' | fzf | xargs pass "$@"
+rbw ls --fields name,user | perl -pale'$_ .= "\t$F[0]/$F[1]"' | fzf --with-nth=3 | perl -pale's/\t[^\t]*$//' | xargs rbw get
diff --git a/bin/hush/ssh-askpass b/bin/hush/ssh-askpass
index 8088c8f..fe9e002 100755
--- a/bin/hush/ssh-askpass
+++ b/bin/hush/ssh-askpass
@@ -2,4 +2,4 @@
set -eu
set -o pipefail
-exec pass "ssh/$(hostname)"
+exec rbw get ssh hush
diff --git a/bin/hush/sudo-askpass b/bin/hush/sudo-askpass
index 2f487be..2f928ed 100755
--- a/bin/hush/sudo-askpass
+++ b/bin/hush/sudo-askpass
@@ -2,4 +2,4 @@
set -eu
set -o pipefail
-exec pass "system/$(hostname)/doy"
+exec rbw get "$(hostname)" doy
diff --git a/bin/on-lock b/bin/on-lock
index b9fa1fe..d7ee1f5 100755
--- a/bin/on-lock
+++ b/bin/on-lock
@@ -3,3 +3,4 @@
sudo -K
ssh-add -D
echo RELOADAGENT | gpg-connect-agent
+rbw lock