markchalloner / git-semver

Git plugin for Semantic Versioning
MIT License
382 stars 43 forks source link

Add support for XDG_CONFIG_HOME (`~/.config/.git-semver`) #6

Closed Zearin closed 9 years ago

Zearin commented 9 years ago

The XDG Base Directory Specification is a set of standards for the locations of config files and similar things. (It’s designed for Linux, but even though I’m on OS X I use it to organize my dotfiles and keep my home directory tidy.)

For this project, you would just have to check for configuration in ~/.config/.git-semver/config first. If it exists, use it. Otherwise, fall back to ~/.git-semver/config as normal.

Zearin commented 9 years ago

Whoops—looks like I forgot about the storing of data! Hang on, I’ll open a PR for this shortly…