From 78753f28d5cad74c16386a7bf8cd5007a83e1d74 Mon Sep 17 00:00:00 2001 From: Dmitry Fedotov Date: Sat, 27 May 2023 00:26:29 +0300 Subject: [PATCH] Add passc & passf functions. --- shell/functions/00-functions | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/shell/functions/00-functions b/shell/functions/00-functions index 785650b..f4c6859 100644 --- a/shell/functions/00-functions +++ b/shell/functions/00-functions @@ -14,3 +14,12 @@ function cdd() { fi } +function passc() { + local choice=$(find $HOME/.password-store -type f -name '*.gpg' -printf '%P\n' | sed 's/\.gpg//' | fzf) + [[ -n "$choice" ]] && pass $choice | xclip +} + +function passf() { + pass find $1 +} + -- 2.39.5