issue-tracker
issue-tracker copied to clipboard
Support XDG for ~/.kite
It would be nice to see Kite respect the XDG basedir specification. This will make sure users can choose where they want these 'dotfiles'. It also splits config, data and cache. This way, users can for example backup their config and periodically remove the cache. I have these files currently in my kite folder:
installid
kited_has_run
libraries/
logs/
logs/client.log
logs/copilot.log
settings.json
vim-plugin.json
These could be split like this:
XDG | Default | Files |
---|---|---|
XDG_CONFIG_HOME |
~/.config |
Maybe settings.json and vim-plugin.json ? |
XDG_DATA_HOME |
~/.local/share |
kited_has_run , installid and libraries/ ? |
XDG_CACHE_HOME |
~/.cache |
logs/ (these can also go in ~/Library/Logs on MacOS and an equivalent on Linux) |
Thank you in advance!
I saw you've added the linux
label, could this be implemented for all *nix systems, including MacOS?
Since it has been a year, are there workarounds available for now? Some environment variables would be lovely. That way we can use something like KIT_CONFIG_HOME=~/.config/kite
. I could only find these for buildkite https://buildkite.com/docs/pipelines/environment-variables.