From: Dmitry Fedotov Date: Sat, 6 Apr 2024 18:47:33 +0000 (+0300) Subject: Fix 'xclip' options for 'passc' function. X-Git-Url: https://git.dmfe.net/?a=commitdiff_plain;h=ffb3c6a06399d5498151a8db083e6ded6ae38555;p=dotfiles Fix 'xclip' options for 'passc' function. --- 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() {