From 150084635e48958ba6228c59199c4ef334d48d26 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Wed, 30 Oct 2024 16:36:26 +0100 Subject: [PATCH] add bitwarden unlock by file --- dot_config/fuzzel/executable_fuzzel-bitwarden.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/dot_config/fuzzel/executable_fuzzel-bitwarden.sh b/dot_config/fuzzel/executable_fuzzel-bitwarden.sh index c5dde39..aa9df31 100644 --- a/dot_config/fuzzel/executable_fuzzel-bitwarden.sh +++ b/dot_config/fuzzel/executable_fuzzel-bitwarden.sh @@ -2,6 +2,7 @@ # Use fuzzel to find a password from password-store and copy it to clipboard. # inpired by: https://gist.github.com/igemnace/2b8609d280752e8a1b173204c14f6892 +export BW_SESSION=$(bw unlock --passwordfile ~/secret.txt --raw) pass_name=$(bw list items | jq -r '.[].name' | fuzzel -d) [[ $pass_name != "" ]] && bw get item "$pass_name" | jq -r '.login.password' | wl-copy