dotfiles/dot_config/fuzzel/executable_fuzzel-wl-copy-pass.sh
2023-12-07 12:13:31 +01:00

7 lines
327 B
Bash

#!/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=$(cd $HOME/.password-store && rg --files | sort | sed 's/\.gpg$//' | fuzzel -d)
[[ $pass_name != "" ]] && pass show $pass_name | wl-copy