From 76b94ef4b1c25fb5511e33e4d6632aa8c88a0e4a Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 18 Apr 2023 22:32:01 +0200 Subject: made matching algorithm prefix on default --- bin/guiscripts/mpass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/guiscripts/mpass') diff --git a/bin/guiscripts/mpass b/bin/guiscripts/mpass index 386abdf..43f6f09 100755 --- a/bin/guiscripts/mpass +++ b/bin/guiscripts/mpass @@ -3,7 +3,7 @@ store="$HOME/.password-store" lscmd="ls --group-directories-first" if [ "$MENUCMD" = "tofi" ] then - menucmd="tofi --matching-algorithm prefix --prompt pass:" + menucmd="tofi --prompt pass:" elif [ "$MENUCMD" = "dmenu" ] then menucmd="dmenu -l 4 -g 2 -x -i -p pass:" -- cgit v1.2.3 From 3c5941df55d843dacf6378317747ed59fe249a5d Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 18 Apr 2023 22:32:25 +0200 Subject: added mpass to menuscripts --- bin/guiscripts/mpass | 19 ------------------- bin/menuscripts/mpass | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 19 deletions(-) delete mode 100755 bin/guiscripts/mpass create mode 100755 bin/menuscripts/mpass (limited to 'bin/guiscripts/mpass') diff --git a/bin/guiscripts/mpass b/bin/guiscripts/mpass deleted file mode 100755 index 43f6f09..0000000 --- a/bin/guiscripts/mpass +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env sh -store="$HOME/.password-store" -lscmd="ls --group-directories-first" -if [ "$MENUCMD" = "tofi" ] -then - menucmd="tofi --prompt pass:" -elif [ "$MENUCMD" = "dmenu" ] -then - menucmd="dmenu -l 4 -g 2 -x -i -p pass:" -else - menucmd="fzf" -fi -while [ -d "${store}/${file}" ] -do - choice="$($lscmd "${store}/${file}" | sed 's/\.gpg$//'| $menucmd)" - [ "$choice" ] || break - file="${file}/${choice}" -done -pass show -c "${file}" diff --git a/bin/menuscripts/mpass b/bin/menuscripts/mpass new file mode 100755 index 0000000..ebe3956 --- /dev/null +++ b/bin/menuscripts/mpass @@ -0,0 +1,19 @@ +#!/usr/bin/env sh +store="$HOME/.password-store" +lscmd="ls --group-directories-first" +if [ "$MENUCMD" = "tofi" ] +then + menucmd="tofi --prompt pass:" +elif [ "$MENUCMD" = "dmenu" ] +then + menucmd="dmenu -l 4 -g 2 -x -i -p pass:" +else + menucmd="fzf --prompt pass:" +fi +while [ -d "${store}/${file}" ] +do + choice="$($lscmd "${store}/${file}" | sed 's/\.gpg$//'| $menucmd)" + [ "$choice" ] || break + file="${file}/${choice}" +done +pass show -c "${file}" -- cgit v1.2.3