From 51ad5f17688b73657ecab8c620deb74fe6e7f27f Mon Sep 17 00:00:00 2001 From: Tobias Schmidl Date: Fri, 19 Oct 2018 10:45:04 +0200 Subject: [PATCH] --- cleanup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/cleanup.sh b/cleanup.sh index 90842bb..b5702ee 100644 --- a/cleanup.sh +++ b/cleanup.sh @@ -4,6 +4,7 @@ find /var/lib/apt -type f -delete find /var/cache/apt -type f -delete find /var/log -type f -regextype posix-extended -regex '.*\.(gz|xz|[0-9])' -delete truncate -s0 $HOME/.bash_history +[ -w $HOME/.zsh_history ] && truncate -s0 HOME/.zsh_history find /var/log -type f -exec truncate -s0 '{}' '+' dd if=/dev/zero of=/emptyfile bs=4M; rm -f /emptyfile;