2023-08-29 00:02:17 +02:00
|
|
|
#!/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
|
|
|
|
|
2023-09-14 11:26:23 +02:00
|
|
|
pass_name=$(cd $HOME/.password-store && rg --files | sort | sed 's/\.gpg$//' | choose)
|
2023-08-29 00:02:17 +02:00
|
|
|
|
|
|
|
[[ $pass_name != "" ]] && pass show -c $pass_name
|