From 8ce68f818a4fc6946e5a78362cba0e569d0345d4 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Wed, 30 Oct 2024 17:29:51 +0100 Subject: [PATCH] add choose version for rbw --- dot_config/choose/executable_choose-rbw.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 dot_config/choose/executable_choose-rbw.sh diff --git a/dot_config/choose/executable_choose-rbw.sh b/dot_config/choose/executable_choose-rbw.sh new file mode 100644 index 0000000..36a7593 --- /dev/null +++ b/dot_config/choose/executable_choose-rbw.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# Use fuzzel to find a password from password-store and copy it to clipboard. +# inpired by: https://gist.github.com/igemnace/2b8609d280752e8a1b173204c14f6892 + +pass_name=$(rbw list | choose) + +[[ $pass_name != "" ]] && rbw get "$pass_name" --clipboard