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

XDG base directory specification compatibility for Git #268

Merged
merged 1 commit into from
May 5, 2020

Conversation

arcticicestudio
Copy link
Owner

Closes #267

Before the Gir snowblock symlinked to the default dotfiles within the
home directory, but Git also fully supports the XDG base directory
specification [1]. So in order to get a step further regarding a
"clean home directory root" the files have been moved to the dedicated
XDG directory.

- Global (`--global`) configuration file [2]
  `~/.gitconfig` -> `${XDG_CONFIG_HOME:-$HOME/.config}/git/config`
- Global exclude file [3]
  `~/.gitignore` -> `${XDG_CONFIG_HOME:-$HOME/.config}/git/ignore`
- Global attributes file [4]
  `~/.gitattributes` -> `${XDG_CONFIG_HOME:-$HOME/.config}/git/attributes`

Also the templates and files used in conditional `include` blocks have
also been renamed and moved into a new and cleaner directory structure.

[1]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
[2]: https://git-scm.com/docs/git-config#Documentation/git-config.txt---global
[4]: https://git-scm.com/docs/git-config#Documentation/git-config.txt-coreattributesFile
[3]: https://git-scm.com/docs/git-config#Documentation/git-config.txt-coreexcludesFile

GH-267

Co-authored-by: Sven Greb <development@svengreb.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XDG base directory specification compatibility for Git
2 participants