aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2018-07-24 16:33:41 -0300
committerEuAndreh <eu@euandre.org>2018-07-24 16:33:41 -0300
commit60e18fa4801e795707b84cdfc67bbf786f7e103c (patch)
tree1b0bb0623e9bdc105c1c60e030706d66363427d7 /scripts
parentAdd useful merkle-tree bash function (diff)
downloaddotfiles-60e18fa4801e795707b84cdfc67bbf786f7e103c.tar.gz
dotfiles-60e18fa4801e795707b84cdfc67bbf786f7e103c.tar.xz
Also cleanup old things in /tmp folder in gc.sh
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gc.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/gc.sh b/scripts/gc.sh
index dcca50a..9ca5af3 100755
--- a/scripts/gc.sh
+++ b/scripts/gc.sh
@@ -14,9 +14,11 @@ nix-store --gc
nix-collect-garbage -d
-## Cleanup up the Trash folder
+## Cleanup up the Trash and /tmp folders
rm -rf ~/.local/share/Trash/files/*
+# https://askubuntu.com/a/609396
+sudo find /tmp -type f -atime +10 -delete
## Erasing docker images