customization pour chercher dans l'arbo des mdps directement
parent
8570e0f72d
commit
b1378c422a
|
|
@ -17,14 +17,12 @@ PREVSELECTION=""
|
|||
SELECTION=""
|
||||
|
||||
while [ "$DONE" -eq 0 ] ; do
|
||||
password_files=( "$STARTDIR"/* )
|
||||
password_files=( "${password_files[@]#"$STARTDIR"/}" )
|
||||
password_files=( "${password_files[@]%.gpg}" )
|
||||
password_files=( `find "$STARTDIR" -iname "*.gpg" | sed -e 's/\.gpg//' -e 's#^.*password-store/##' ` )
|
||||
|
||||
if [ "$LEVEL" -ne 0 ] ; then
|
||||
password_files=(".." "${password_files[@]}")
|
||||
fi
|
||||
entry=$(printf '%s\n' "${password_files[@]}" | dmenu "$@" -l 15)
|
||||
fi
|
||||
|
||||
echo "entry: $entry"
|
||||
if [ -z "$entry" ] ; then
|
||||
|
|
|
|||
Loading…
Reference in New Issue