[feaure] use fzf for password fetching

This commit is contained in:
Klesh Wong 2021-02-05 11:05:41 +08:00
parent 9ff0111a68
commit 42c67f85b5

6
bin/p Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
PPWD=$(pwd)
trap "cd '$PPWD'" EXIT
cd ~/.password-store
find . -iname '*.gpg' | cut -c3- | sed 's/\.gpg$//g' | fzf | xargs pass -c