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