From ffb3c6a06399d5498151a8db083e6ded6ae38555 Mon Sep 17 00:00:00 2001 From: Dmitry Fedotov Date: Sat, 6 Apr 2024 21:47:33 +0300 Subject: [PATCH] Fix 'xclip' options for 'passc' function. --- shell/functions/00-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/functions/00-functions b/shell/functions/00-functions index f4c6859..8a63405 100644 --- a/shell/functions/00-functions +++ b/shell/functions/00-functions @@ -16,7 +16,7 @@ function cdd() { function passc() { local choice=$(find $HOME/.password-store -type f -name '*.gpg' -printf '%P\n' | sed 's/\.gpg//' | fzf) - [[ -n "$choice" ]] && pass $choice | xclip + [[ -n "$choice" ]] && pass $choice | xclip -i -sel p -f | xclip -i -sel c } function passf() { -- 2.39.5