X-Git-Url: https://src.twobees.de/?a=blobdiff_plain;f=stow%2Fbin%2F.bin%2Fpassfind.sh;fp=stow%2Fbin%2F.bin%2Fpassfind.sh;h=f07e7b6f1a1fc6f710b1d23ec673d10a578a8eec;hb=d0228fb089c4d0dd83e14f10bc3198232eb93217;hp=0000000000000000000000000000000000000000;hpb=62c3c3dc07cdcd09f1712f6eb4eb658c8be6bf01;p=dotfiles.git diff --git a/stow/bin/.bin/passfind.sh b/stow/bin/.bin/passfind.sh new file mode 100755 index 0000000..f07e7b6 --- /dev/null +++ b/stow/bin/.bin/passfind.sh @@ -0,0 +1,8 @@ +#!/bin/sh +query=$1 +p=$(find .password-store -type f -not -path "*.git/*" | sed 's/^.password-store\///' | sed 's/\.gpg$//' | fzf --query="$query") + +if [ -n "$p" ];then + echo "'$p'" + pass show "$p" +fi