summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-12-27 16:58:23 -0500
committerJesse Luehrs <doy@tozt.net>2021-12-27 16:58:23 -0500
commit163cb273c841c89b945fe7e9fb995a6e55910139 (patch)
tree27ee4d925aafe0009fa3d070f597a6049dfeffdc
parenta33b7b8997733b9fb878dd6abd7bbd630eb6c6f4 (diff)
downloadconf-163cb273c841c89b945fe7e9fb995a6e55910139.tar.gz
conf-163cb273c841c89b945fe7e9fb995a6e55910139.zip
update password searching script
-rwxr-xr-xbin/hornet/p2
1 files changed, 1 insertions, 1 deletions
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