4 ms·
find ~/.password-store -name '*.gpg' -printf '%P\n' | sed -e 's:.gpg$::gi' | fzf | xargs pass -c There is also an extension: https://github.com/ficoos/pass-fzf
by creese 5y ago
find ~/.password-store -name '*.gpg' -printf '%P\n' | sed -e 's:.gpg$::gi' | fzf | xargs pass -c
There is also an extension:
https://github.com/ficoos/pass-fzf https://github.com/ficoos/pass-fzf
- sam_lowry_ 5y agoGood point, but `pacman -S gopass` is wa-a-ay easier ;-)
- creese 5y agoI use a bash function: pass () { if [ $# -eq 0 ] || ( [ $# -eq 1 ] && [ $1 = "-c" ] ); then find ~/.password-store -name '\*.gpg' -printf '%P\n' | sed -e 's:.gpg$::gi' | fzf | xargs /usr/local/bin/pass $@; else /usr/local/bin/pass $@; fi } pass + fzf + bash > gopass. DOTADIW.