diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-05-08 20:17:09 +0200 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-05-08 20:17:09 +0200 | 
| commit | 1da48110238d7fb4e42c7d8cd605f54c770048a4 (patch) | |
| tree | 15b0cf79ef739bcd585ebd4fff21b410c06d14d7 /bin | |
| parent | 50dd478be3d120221fbf467cffaf6ea57fb0b627 (diff) | |
don't save password to clipboard history
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/menuscripts/mpass | 14 | 
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  | 
