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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue