Open Metallion opened 4 years ago
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.
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.
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.