Fix handling of XDG_CONFIG_HOME

This commit is contained in:
Christoph Loy
2024-01-01 20:56:34 +01:00
parent 068121d722
commit 3d99356023
3 changed files with 58 additions and 19 deletions

View File

@@ -2,10 +2,11 @@
## Path
By default autorestic searches for a `.autorestic.yml` file in the current directory and your home folder.
By default autorestic searches for a `.autorestic.yml` file in the current directory, your home folder and your XDG config folder (`~/.config/` by default):
- `./.autorestic.yml`
- `~/.autorestic.yml`
- `~/.config/autorestic/.autorestic.yml`
You can also specify a custom file with the `-c path/to/some/config.yml`