-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclean-tmp.sh
More file actions
executable file
·46 lines (39 loc) · 1.18 KB
/
clean-tmp.sh
File metadata and controls
executable file
·46 lines (39 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
# Delete temporary files.
# Set bash strict mode.
set -euo pipefail
echo "Running autoremove"
sudo apt autoremove
echo "Running clean"
sudo apt clean
echo "Moving files to trash bin"
gio trash -f \
"$HOME"/.aliensh_history \
"$HOME"/.bash_history \
"$HOME"/.cache/doublecmd/thumbnails/* \
"$HOME"/.cache/mintinstall/screenshots/* \
"$HOME"/.cache/thumbnails/*/*.png \
"$HOME"/.cache/thumbnails/*/*/*.png \
"$HOME"/.config/session/* \
"$HOME"/.config/xnviewmp/*log* \
"$HOME"/.config/xnviewmp/XnView.db \
"$HOME"/.lesshst \
"$HOME"/.local/share/Hardcoded\ Software/dupeGuru/cached_pictures.db \
"$HOME"/.local/share/Hardcoded\ Software/dupeGuru/debug.log \
"$HOME"/.local/share/Hardcoded\ Software/dupeGuru/hash_cache.db \
"$HOME"/.local/share/Hardcoded\ Software/dupeGuru/last_directories.xml \
"$HOME"/.local/share/okular/docdata/* \
"$HOME"/.local/share/RecentDocuments/* \
"$HOME"/.nano_history \
"$HOME"/.python_history \
"$HOME"/.root_hist \
"$HOME"/.wget-hsts \
"$HOME"/core \
exit
# Obsolete paths
# ~/.adobe/Flash_Player/AssetCache/* \
# ~/.gnuplot_history \
# ~/.thumbnails/*/*.png \
# ~/.thumbnails/*/*/*.png \
# ~/.vidyo/VidyoDesktop/VidyoDesktop_*.log \
# ~/kdenlive/thumbs \