mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Add support for $HOME/.tioconfig
Replaces what used to be $HOME/.tiorc
This commit is contained in:
parent
6a955b08e1
commit
4e9d29c88d
2 changed files with 9 additions and 0 deletions
|
|
@ -335,6 +335,8 @@ listed:
|
||||||
.I $XDG_CONFIG_HOME/tio/config
|
.I $XDG_CONFIG_HOME/tio/config
|
||||||
.PP
|
.PP
|
||||||
.I $HOME/.config/tio/config
|
.I $HOME/.config/tio/config
|
||||||
|
.PP
|
||||||
|
.I $HOME/.tioconfig
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
Labels can be used to group settings into named sub-configurations which can be
|
Labels can be used to group settings into named sub-configurations which can be
|
||||||
|
|
|
||||||
|
|
@ -385,6 +385,13 @@ static int resolve_config_file(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
free(c.path);
|
free(c.path);
|
||||||
|
|
||||||
|
asprintf(&c.path, "%s/.tioconfig", home);
|
||||||
|
if (access(c.path, F_OK) == 0)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
free(c.path);
|
||||||
}
|
}
|
||||||
|
|
||||||
c.path = NULL;
|
c.path = NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue