Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants