summary refs log tree commit diff
path: root/litterbox.1
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-01-11 01:53:02 -0500
committerJune McEnroe <june@causal.agency>2020-01-11 02:01:01 -0500
commitdc3c4797b321bfe80897ac7dc91d7b3a04507a72 (patch)
tree4b44d2d26d4ae8ad08c93866b107aa4c99587ecf /litterbox.1
parentOpen database readwrite in scoop (diff)
downloadlitterbox-dc3c4797b321bfe80897ac7dc91d7b3a04507a72.tar.gz
litterbox-dc3c4797b321bfe80897ac7dc91d7b3a04507a72.zip
Search for config files in XDG base directories
Diffstat (limited to 'litterbox.1')
-rw-r--r--litterbox.118
1 files changed, 17 insertions, 1 deletions
diff --git a/litterbox.1 b/litterbox.1
index d8fc311..79bec7e 100644
--- a/litterbox.1
+++ b/litterbox.1
@@ -1,4 +1,4 @@
-.Dd January 4, 2020
+.Dd January 11, 2020
 .Dt LITTERBOX 1
 .Os
 .
@@ -46,6 +46,12 @@ an existing database can be migrated with
 .Pp
 Options can be loaded from
 files listed on the command line.
+Files are searched for in
+.Pa $XDG_CONFIG_DIRS/litterbox
+unless the path starts with
+.Ql /
+or
+.Ql \&. .
 Each option is placed on a line,
 and lines beginning with
 .Ql #
@@ -169,6 +175,16 @@ Log in with the server password
 .
 .Sh FILES
 .Bl -tag -width Ds
+.It Pa $XDG_CONFIG_DIRS/litterbox
+Configuration files are searched for first in
+.Ev $XDG_CONFIG_HOME ,
+usually
+.Pa ~/.config ,
+followed by the colon-separated list of paths
+.Ev $XDG_CONFIG_DIRS ,
+usually
+.Pa /etc/xdg .
+.
 .It Pa $XDG_DATA_DIRS/litterbox/litterbox.sqlite
 The database file is searched for first in
 .Ev $XDG_DATA_HOME ,