aboutsummaryrefslogtreecommitdiff
path: root/examples/old-installers.conf
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-09-13 02:31:32 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-09-13 02:31:32 +0200
commit26c94eb3db62ec6eebbf8d22c11afe691d9520c4 (patch)
tree165e5bf69234b4f96c9b74deb4898d7143ddf120 /examples/old-installers.conf
parenta6e442a645902011b2081c216daaec052cdc6ce6 (diff)
downloadkrino-26c94eb3db62ec6eebbf8d22c11afe691d9520c4.tar.gz
krino-26c94eb3db62ec6eebbf8d22c11afe691d9520c4.zip
krino: release 0.0.1 — man pages, install, examples, cross and release, README, changelogv0.0.1
Also: undo removes the directories its run created; a hardlink is never a duplicate of its own other name; a flag written before "undo" is honoured; --version prints no leading v. Duplicate conditions with different scopes not sharing an original is documented as a known limitation.
Diffstat (limited to 'examples/old-installers.conf')
-rw-r--r--examples/old-installers.conf26
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/old-installers.conf b/examples/old-installers.conf
new file mode 100644
index 0000000..6ad63e7
--- /dev/null
+++ b/examples/old-installers.conf
@@ -0,0 +1,26 @@
+;; -*- mode: lisp -*-
+;; vim: set ft=lisp :
+;;
+;; old-installers.conf — clean up old installers with (age ...) and (delete).
+;;
+;; Demonstrates: (type package), (age ...) by modification time, and
+;; (delete) — which moves a matched file to the desktop trash
+;; ($XDG_DATA_HOME/Trash), NOT a permanent delete; recover a mistake from
+;; there. Use (delete permanent) instead only if you really want an unlink
+;; that undo cannot reverse — see krino.conf(5), ACTIONS.
+;;
+;; To use: copy this to dirs/<name>.conf, fix (path ...) below, and add
+;; <name> to (include ...) in krino.conf. A short tutorial on the syntax is
+;; docs/sexp-primer.md in the source repository, installed alongside this
+;; file at $PREFIX/share/doc/krino/sexp-primer.md; every form is described
+;; in krino.conf(5).
+
+(path "~/Downloads") ; CHANGE THIS to the directory to sort
+
+;; Leave partial downloads and dotfiles alone.
+(ignore "*.part" "*.crdownload" "*.aria2" ".*")
+
+(rule "old-installers"
+ (when (type package)
+ (age > 90d))
+ (delete))