diff --git a/man/tio.1.in b/man/tio.1.in index 701b852..52523ee 100644 --- a/man/tio.1.in +++ b/man/tio.1.in @@ -335,6 +335,8 @@ listed: .I $XDG_CONFIG_HOME/tio/config .PP .I $HOME/.config/tio/config +.PP +.I $HOME/.tioconfig .PP Labels can be used to group settings into named sub-configurations which can be diff --git a/src/configfile.c b/src/configfile.c index c3ff4cf..d3dbd16 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -385,6 +385,13 @@ static int resolve_config_file(void) return 0; } free(c.path); + + asprintf(&c.path, "%s/.tioconfig", home); + if (access(c.path, F_OK) == 0) + { + return 0; + } + free(c.path); } c.path = NULL;