add bitwarden unlock by file
This commit is contained in:
parent
53c29160e4
commit
150084635e
1 changed files with 1 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
# Use fuzzel to find a password from password-store and copy it to clipboard.
|
# Use fuzzel to find a password from password-store and copy it to clipboard.
|
||||||
# inpired by: https://gist.github.com/igemnace/2b8609d280752e8a1b173204c14f6892
|
# 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 list items | jq -r '.[].name' | fuzzel -d)
|
||||||
|
|
||||||
[[ $pass_name != "" ]] && bw get item "$pass_name" | jq -r '.login.password' | wl-copy
|
[[ $pass_name != "" ]] && bw get item "$pass_name" | jq -r '.login.password' | wl-copy
|
||||||
|
|
Loading…
Reference in a new issue