Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Kaiser config file shouldn't be a dot file #20

Open
Metallion opened this issue Sep 6, 2019 · 2 comments
Open

Kaiser config file shouldn't be a dot file #20

Metallion opened this issue Sep 6, 2019 · 2 comments

Comments

@Metallion
Copy link
Member

I'm currently writing some documentation for Kaiser and while digging into the tool's internals I missed the ~/.kaiser/.config.yml for quite a while.

Since ~/.kaiser is already a hidden directory, I think the files in there shouldn't be hidden. I suggest changing it to ~/.kaiser/config.yml and building in a little backwards compatibility layer for people that still have the old .config.yml I'd suggest a function that looks for the dotted file and undots if it exists. If an undotted config file exists already, it should take priority over the dotted one.

@Resonious
Copy link
Member

Makes sense to not have a hidden file inside of a hidden directory. In fact if we're going to change file paths, I'd suggest following the XDG basedir spec and using $XDG_CONFIG_HOME/kaiser/$XDG_DATA_HOME/kaiser or similar.

@Metallion
Copy link
Member Author

I just noticed there's a couple more hidden files in the ~/.kaiser directory. The default database for example. :) I'll have a read through that spec.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants