dotfiles

personal dotfiles
git clone anongit@rnpnr.xyz:dotfiles.git
Log | Files | Refs | Feed | Submodules

Commit: 361b12529e3026c58b902d196b7d347e91d18f8e
Parent: 2db7a2db6484d36229184c9449ec4fe3156732db
Author: Randy Palamar
Date:   Sun, 20 Feb 2022 20:32:44 -0700

simplify passmenu

Diffstat:
Mbin/passmenu | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/bin/passmenu b/bin/passmenu @@ -2,11 +2,9 @@ # uses dmenu to select a password to copy to the clipboard # it is removed from the clipboard once pasted -# make sure gpg-agent is running and unlocked +# make sure gpg-agent is running -PASS_DIR=~/.spm - -password=$(cd $PASS_DIR; find . -type f -name \*.gpg | \ - sed 's:^\./::; s:\.gpg$::' | dmenu -i -p "Password:") || exit 0 +password=$(spm search . | cut -d '/' -f 5- | dmenu -i -p "Password:") || exit 0 +password=${password%.*} spm show "$password" | head -1 | xclip -r -sel clip -l 1 > /dev/null 2>&1