summaryrefslogtreecommitdiff
path: root/contrib/dmenu/passmenu
blob: 5d9d4540ac9abfc9fc1e699caa2a03ab47ed89eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

shopt -s nullglob globstar

prefix=${PASSWORD_STORE_DIR-~/.password-store}
password_files=( "$prefix"/**/*.gpg )
password_files=( "${password_files[@]#"$prefix"/}" )
password_files=( "${password_files[@]%.gpg}" )

password=$(printf '%s\n' "${password_files[@]}" | dmenu "$@")

[ $? -eq 0 ] && pass -c "$password"
td class='logsubject'>Some optimizationsRené 'Necoro' Neumann2-10/+12 2009-08-15documentationRené 'Necoro' Neumann2-3/+33 2009-08-15Correctly handle exceptionsRené 'Necoro' Neumann2-5/+13 2009-08-15Renamed 'mq' to 'ipc'René 'Necoro' Neumann5-21/+21 2009-08-15Finish mq moduleRené 'Necoro' Neumann2-7/+8 2009-08-15Unified stringsRené 'Necoro' Neumann1-2/+2 2009-08-15Removed obscur whateverRené 'Necoro' Neumann1-2/+0 2009-08-15Moved all the include stuff to the pxdRené 'Necoro' Neumann2-39/+62 2009-08-15Add module to setup.pyRené 'Necoro' Neumann1-7/+4 2009-08-15First try of own mq-moduleRené 'Necoro' Neumann3-13/+185 2009-08-15Use message queue instead of SHMRené 'Necoro' Neumann2-51/+26 2009-08-15Honor missing eix moduleRené 'Necoro' Neumann1-2/+7 2009-08-15Also allow --enable-eixRené 'Necoro' Neumann1-1/+1 2009-08-15Also allow --enable-eixRené 'Necoro' Neumann1-0/+3 2009-08-14Change config and changelogRené 'Necoro' Neumann2-1/+6 2009-08-14Allow to disable eix in setup.pyRené 'Necoro' Neumann1-8/+17 2009-08-14Correct setup.pyRené 'Necoro' Neumann1-2/+17