aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--base/.zsh/functions.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/.zsh/functions.zsh b/base/.zsh/functions.zsh
index 4606c13..d2905ad 100644
--- a/base/.zsh/functions.zsh
+++ b/base/.zsh/functions.zsh
@@ -10,9 +10,9 @@ function which {
} #export -f which
function trash {
- mkdir "$HOME/.trash"
+ mkdir -p "$HOME/.trash"
for file in "$@"; do
mv "$file" "$HOME/.trash/$(basename $file).$(date +%Y%m%d-%H%M%S)"
done
} # Add this to your crontab:
-# 43 0 * * 3 find ~/.trash -type f -mtime +90 -delete
+# 43 0 * * 3 find ~/.trash -mindepth 1 -mtime +90 -delete