summaryrefslogtreecommitdiff
path: root/bin/menuscripts/mpass
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-05-08 20:17:09 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-05-08 20:17:09 +0200
commit1da48110238d7fb4e42c7d8cd605f54c770048a4 (patch)
tree15b0cf79ef739bcd585ebd4fff21b410c06d14d7 /bin/menuscripts/mpass
parent50dd478be3d120221fbf467cffaf6ea57fb0b627 (diff)
don't save password to clipboard history
Diffstat (limited to 'bin/menuscripts/mpass')
-rwxr-xr-xbin/menuscripts/mpass14
1 files changed, 10 insertions, 4 deletions
diff --git a/bin/menuscripts/mpass b/bin/menuscripts/mpass
index ebe3956..870efb1 100755
--- a/bin/menuscripts/mpass
+++ b/bin/menuscripts/mpass
@@ -10,10 +10,16 @@ then
else
menucmd="fzf --prompt pass:"
fi
-while [ -d "${store}/${file}" ]
+while [ -d "$store/$file" ]
do
- choice="$($lscmd "${store}/${file}" | sed 's/\.gpg$//'| $menucmd)"
+ choice="$($lscmd "$store/$file" | sed 's/\.gpg$//'| $menucmd)"
[ "$choice" ] || break
- file="${file}/${choice}"
+ file="$file/$choice"
done
-pass show -c "${file}"
+
+pass show -c "$file"
+
+test -n "$WAYLAND_DISPLAY" && pgrep -f "cliphist" &&
+ cliphist list |
+ tail -1 |
+ cliphist delete