~sircmpwn/public-inbox

dotfiles: Copy only first line of decrypted gpg file v1 PROPOSED

~hansen: 1
 Copy only first line of decrypted gpg file

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/public-inbox/patches/10831/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH dotfiles] Copy only first line of decrypted gpg file Export this patch

---
 bin/pass-dmenu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/pass-dmenu b/bin/pass-dmenu
index 3e966a5..84210d5 100755
--- a/bin/pass-dmenu
@@ -1,7 +1,7 @@
#!/bin/sh
set -e
target=$(find ~/.password-store/ | sed -re 's/\.gpg$//' | sed -re 's:^.*/.password-store/::' | dmenu -l 5 -nb '#FF004F')
wl-copy $(pass $target)
wl-copy $(pass $target | head -n1 )
notify-send -u critical -t 45000 "Password in clipboard" "Your $target password is currently in your clipboard."
sleep 45
wl-copy "[redacted]"
-- 
2.26.2