scripts

random scripts
git clone https://git.parazyd.org/scripts
Log | Files | Refs

dmenupass (324B)


      1 #!/bin/dash
      2 
      3 prefix="${PASSWORD_STORE_DIR:-$HOME/.password-store}"
      4 
      5 password="$(\
      6 #	printf %s\\n $prefix/**/*.gpg \
      7 	find "$prefix" -name '*.gpg' \
      8 		| sed -e "s/.gpg$//" -e "s@$prefix/@@" \
      9 		| dmenu -i -l 15 -p 'pass:' -sb '#d7ff00' -sf '#000000' "$@")"
     10 
     11 [ -n "$password" ] || exit 1
     12 
     13 pass show -c "$password" 2>/dev/null