From 5acbba1744a56edd3329a43b632cd73f42eeed81 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Wed, 30 Oct 2024 16:22:35 +0100 Subject: [PATCH] add fuzzel for bitwarden --- dot_config/fuzzel/executable_fuzzel-bitwarden.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 dot_config/fuzzel/executable_fuzzel-bitwarden.sh diff --git a/dot_config/fuzzel/executable_fuzzel-bitwarden.sh b/dot_config/fuzzel/executable_fuzzel-bitwarden.sh new file mode 100644 index 0000000..c5dde39 --- /dev/null +++ b/dot_config/fuzzel/executable_fuzzel-bitwarden.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=$(bw list items | jq -r '.[].name' | fuzzel -d) + +[[ $pass_name != "" ]] && bw get item "$pass_name" | jq -r '.login.password' | wl-copy