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

More conventional dotfile loading #18

Merged
merged 1 commit into from
Oct 11, 2017
Merged

More conventional dotfile loading #18

merged 1 commit into from
Oct 11, 2017

Conversation

akkartik
Copy link
Contributor

  1. Drop the '.' in '.ratrc'. Redundant since the parent directory is
    hidden. Fixes ratrc should not have a leading dot #16.

  2. Instead of hardcoding the location of rat's config directory, use
    $XDG_CONFIG_HOME, following the convention on Unix-like systems.
    https://en.wikipedia.org/wiki/Freedesktop.org
    https://specifications.freedesktop.org/basedir-spec/latest

In the process I've created a new file for dotfile issues, which may be
useful for supporting #17 (loading multiple config files).

Open question: should we update the default flags.cmd? I've minimally
updated it for now, but it's still useless to anyone overriding
$XDG_CONFIG_HOME. I'm new to Go, and I don't know how to pass
non-literal defaults to flags. I also wonder if the default should be
something else.

1. Drop the '.' in '.ratrc'. Redundant since the parent directory is
hidden. Fixes #16.

2. Instead of hardcoding the location of rat's config directory, use
$XDG_CONFIG_HOME, following the convention on Unix-like systems.
  https://en.wikipedia.org/wiki/Freedesktop.org
  https://specifications.freedesktop.org/basedir-spec/latest

In the process I've created a new file for dotfile issues, which may be
useful for supporting #17 (loading multiple config files).

Open question: should we update the default `flags.cmd`? I've minimally
updated it for now, but it's still useless to anyone overriding
$XDG_CONFIG_HOME. I'm new to Go, and I don't know how to pass
non-literal defaults to flags. I also wonder if the default should be
something else.
@ericfreese ericfreese merged commit 43f7ad7 into ericfreese:master Oct 11, 2017
@ericfreese
Copy link
Owner

Thanks @akkartik! Mind opening an issue for your open question and folks can discuss there?

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

Successfully merging this pull request may close these issues.

2 participants