K9s: please store config in ~/.config/k9s

Created on 30 May 2020  路  2Comments  路  Source: derailed/k9s






Is your feature request related to a problem? Please describe.

I'm always frustrated when i've got a million dotfiles in my home directory, I don't need them there. I'd like them in a ~/.config/k9s/ directory instead so that I can be proud that my favourite tools are following best practices and not cluttering up my home directory.

Describe the solution you'd like

i'd like the default config directory for k9s to be ~/.config/k9s/

Describe alternatives you've considered

potentially an environment variable that allows you to set the config directory, with ~/.config/k9s being the default value for that variable. If it doesn't find anything it could e.g. fail over to the original config location

Additional context

none

Most helpful comment

@cyclingwithelephants v0.20.4 now offers K9SCONFIG env var so you can designate an alternate config dir for K9s.

All 2 comments

This is related to XDG specification. I think it would help if this feature request at least links to said specification or details the implications/etc of said specification:

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

Also a nice summary:

https://wiki.archlinux.org/index.php/XDG_Base_Directory

@cyclingwithelephants v0.20.4 now offers K9SCONFIG env var so you can designate an alternate config dir for K9s.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

krysopath picture krysopath  路  3Comments

stk0vrfl0w picture stk0vrfl0w  路  3Comments

ChrisCooney picture ChrisCooney  路  3Comments

steffen-geissinger-by picture steffen-geissinger-by  路  3Comments

ctritten picture ctritten  路  3Comments