summary refs log tree commit diff
path: root/bin/man1
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-08-15 21:04:20 -0400
committerJune McEnroe <june@causal.agency>2022-08-15 21:04:20 -0400
commit04a1a4cf0a469393f38c71ebe91ad02fceb855cf (patch)
tree2f67250d69e00e1556cf8c8215312ad161665934 /bin/man1
parentAllow names with prefixes of months and days (diff)
downloadsrc-04a1a4cf0a469393f38c71ebe91ad02fceb855cf.tar.gz
src-04a1a4cf0a469393f38c71ebe91ad02fceb855cf.zip
Load dates from ~/.config/when/dates
Diffstat (limited to 'bin/man1')
-rw-r--r--bin/man1/when.114
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/man1/when.1 b/bin/man1/when.1
index 205b2d81..64f51cae 100644
--- a/bin/man1/when.1
+++ b/bin/man1/when.1
@@ -68,6 +68,14 @@ A number of months.
 A number of years.
 .El
 .
+.Sh FILES
+The file
+.Pa $XDG_CONFIG_HOME/when/dates
+or
+.Pa ~/.config/when/dates
+is read before any other expressions,
+if it exists.
+.
 .Sh EXAMPLES
 .Bl -tag -width "Dec 25 - ."
 .It Ic Dec 25 - \&.
@@ -77,3 +85,9 @@ The date next Friday.
 .It Ic \&. + 2w
 Your last day at work.
 .El
+.Pp
+Checking a milestone:
+.Bd -literal -offset indent
+$ echo 'hrt = oct 15 2021' >> ~/.config/when/dates
+$ when -hrt
+.Ed