From 42c67f85b53c88145259bdf45aab993ee44da1a7 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Fri, 5 Feb 2021 11:05:41 +0800 Subject: [PATCH] [feaure] use fzf for password fetching --- bin/p | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 bin/p diff --git a/bin/p b/bin/p new file mode 100755 index 0000000..f204359 --- /dev/null +++ b/bin/p @@ -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