Skip to content

Support XDG_CONFIG_HOME on linux for config files #22

Description

@googol

Hi, thanks for the great tool!

On linux there's a shift towards storing config files in the $XDG_CONFIG_HOME directory, normally configured as $HOME/.config, to keep the home directory less cluttered. It would be great if target-cli could store it's configs in $XDG_CONFIG_HOME/target instead of $HOME/.target.

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

Go stdlib supports this out of the box: https://pkg.go.dev/os#UserConfigDir

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions