From 163cb273c841c89b945fe7e9fb995a6e55910139 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 27 Dec 2021 16:58:23 -0500 Subject: update password searching script --- bin/hornet/p | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/hornet/p b/bin/hornet/p index dc0ba9c..cbf15c4 100755 --- a/bin/hornet/p +++ b/bin/hornet/p @@ -2,4 +2,4 @@ set -eu set -o pipefail -rbw ls --fields name,user,folder | perl -plE'/^([^\t]*)\t([^\t]*)\t([^\t]*)$/; $_ = join("/", grep { length } ($3, $1, $2)) . "\t$_"' | sort | fzf --with-nth=1 | perl -ple'/^([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)$/; $_ = "$2 $3"' | xargs -r rbw get +rbw ls --fields name,user,folder | perl -plE'/^([^\t]*)\t([^\t]*)\t([^\t]*)$/; $_ = join("/", grep { length } ($3, $1, $2)) . "\0$_"' | sort | fzf --with-nth=1 -d '\x00' | perl -ple'/^([^\0]*)\0([^\t]*)\t([^\t]*)\t([^\t]*)$/; $_ = "$2 $3"; $_ .= " --folder=\"$4\"" if length $4' | xargs -r rbw get -- cgit v1.2.3-54-g00ecf