aboutsummaryrefslogtreecommitdiffstats
path: root/ck.1
diff options
context:
space:
mode:
Diffstat (limited to 'ck.1')
-rw-r--r--ck.129
1 files changed, 20 insertions, 9 deletions
diff --git a/ck.1 b/ck.1
index d120757..a1c3d5e 100644
--- a/ck.1
+++ b/ck.1
@@ -137,10 +137,7 @@ uses
.B sqlite
to index the configuration files. The
.B init action
-by default creates a directory named
-.I .ck
-under
-.I $HOME
+by default creates a directory
in witch the
.I ckrc
and
@@ -149,6 +146,18 @@ files reside. See the
.B FILES
section for more details.
.P
+.B ck
+will first search for the configuration in the folder shown by the
+.I $CK_CONFIG
+environment variable. If it is set it will use the
+.I ckrc
+and
+.I ckdb
+inside this directory. Else it wil use
+.I $XDG_CONFIG_HOME/ck
+and if that is not set as well it will fall back to
+.IR $HOME/.ck .
+.P
One can have multiple
.B config directories
with different configurations each.
@@ -159,7 +168,7 @@ in which ck will search for
.I ckrc
and
.IR ckdb .
-See the
+Using this will ignore any environment variables. See the
.B OPTIONS
section for more details.
.P
@@ -178,9 +187,7 @@ Currently prints the log. Must be the first argument in order to work.
Use
.BR ckdb \ and \ ckrc
residing in
-.I DIR
-instead of the default
-.IR ~/.ck/ .
+.IR DIR .
.TP
.B \-\-version\fR, \fBversion
Print version and licence information, and quit.
@@ -732,7 +739,11 @@ shall return 0 if the action was completed without an error, -1 otherwise
By default
.B ck
will store it's files in
-.IR ~/.ck/ .
+.I $CK_CONFIG
+>
+.I $XDG_CONFIG_HOME/ck
+>
+.IR $HOME/.ck .
Using the
.BR \-c | \-\-config
one can change this.