Update lock script

This commit is contained in:
Jeremy Gardais 2023-04-30 13:07:27 +02:00
parent 44722d1350
commit a9e7c1b5b7
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 4 additions and 4 deletions

View File

@ -25,17 +25,17 @@ rm --recursive --force -- /tmp/ssh-*
# GPG Agent
keychain --agents gpg --clear
kill $(pidof gpg-agent)
pkill --uid="$(id -u)" -- "gpg-agent"
# Delete everything link to ssh-agent or gpg-agent
rm --recursive --force -- ~/.keychain/*
# git-credential sockets
killall git-credential-cache--daemon
pkill --uid="$(id -u)" --full -- "git-credential-cache"
rm --force -- ~/.git-credential-cache/*
# Keepass2 (killall keepass, both those launch with 'mono' and those launch with 'cli)
pkill --full -- "keepass"
pkill --uid="$(id -u)" --full -- "keepass"
# Delete sensitive files can contains unwanted clear passwords
rm --force -- ~/.config/evince/print-settings ~/.config/eog/eog-print-settings.ini
@ -47,7 +47,7 @@ find ~/.config -ipath "*GIMP*" -and -iname "print-settings" -delete
# Purge local user recent files
rm --force -- ~/.local/share/recently-used.xbel
rm --force -- ~/.recently-used
rm --force -- ~/.thumbnails/normal
rm --force --recursive -- ~/.thumbnails/normal
rm --force -- ~/.config/vlc/vlc-qt-interface.conf
rm --force -- ~/.config/smplayer/smplayer.ini