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 #267

Closed
arcticicestudio opened this issue May 5, 2020 · 0 comments · Fixed by #268
Closed

XDG base directory specification compatibility for Git #267

arcticicestudio opened this issue May 5, 2020 · 0 comments · Fixed by #268

Comments

@arcticicestudio
Copy link
Owner

Currently the Git snowblock symlinks to the default dotfiles within the home directory, but Git also fully supports the XDG base directory specification. So in order to get a step further regarding a "clean home directory root" the files will be moved to the dedicated XDG directory.

Also the current templates and files used in conditional include blocks will be renamed and moved into a new and cleaner directory structure.

@arcticicestudio arcticicestudio added this to the Next milestone May 5, 2020
arcticicestudio added a commit that referenced this issue May 5, 2020
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>
arcticicestudio added a commit that referenced this issue May 5, 2020
Before the Git 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

Closes 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 a pull request may close this issue.

2 participants