]> www.git.dmfe.net Git - dotfiles/commitdiff
Add passc & passf functions.
authorDmitry Fedotov <dm.fe@yandex.ru>
Fri, 26 May 2023 21:26:29 +0000 (00:26 +0300)
committerDmitry Fedotov <dm.fe@yandex.ru>
Fri, 26 May 2023 21:26:38 +0000 (00:26 +0300)
shell/functions/00-functions

index 785650b6c34d25e244b3d8d250c9bfbd2422942f..f4c68597e0d029cf4e206a97dada4d4298032e53 100644 (file)
@@ -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
+}
+