]> www.git.dmfe.net Git - dotfiles/commitdiff
Fix 'xclip' options for 'passc' function.
authorDmitry Fedotov <dm.fe@yandex.ru>
Sat, 6 Apr 2024 18:47:33 +0000 (21:47 +0300)
committerDmitry Fedotov <dm.fe@yandex.ru>
Sat, 6 Apr 2024 18:47:33 +0000 (21:47 +0300)
shell/functions/00-functions

index f4c68597e0d029cf4e206a97dada4d4298032e53..8a634054fb31f4e039a871a3e7343cc01fcd8919 100644 (file)
@@ -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() {