diff options
Diffstat (limited to 'bin/hornet/p')
-rwxr-xr-x | bin/hornet/p | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/hornet/p b/bin/hornet/p new file mode 100755 index 0000000..dc0ba9c --- /dev/null +++ b/bin/hornet/p @@ -0,0 +1,5 @@ +#!/bin/bash +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 |