vcsh icon indicating copy to clipboard operation
vcsh copied to clipboard

Make .gitignore.d & gitattributes.d XDG compatible

Open nfarrar opened this issue 9 years ago • 4 comments

Vcsh currently reads the ignore & attribute data from files located at $VCSH_BASE/.gitignore.d/$VCSH_REPO_NAME and $VCSH_BASE/.gitattributes.d/$VCSH_REPO_NAME (respectively). I prefer to keep $HOME as uncluttered as possible and organize application configurations into application-specific configuration directories (using the XDG) specification defaults:

$XDG_CONFIG_HOME/vcsh/.gitignore.d/$VCSH_REPO_NAME
$XDG_CONFIG_HOME/vcsh/.gitattributes.d/$VCSH_REPO_NAME

Would it be possible to add support for these paths?

nfarrar avatar Aug 23 '15 17:08 nfarrar

Just checking back in. Any chance to get support for these? :)

nfarrar avatar Mar 31 '16 12:03 nfarrar

I tested the patch provided by @miramir (#203). This works for me.

It would be nice of course, to have $XDG_CONFIG_HOME as the default for the variables for newly created vcsh-repositories.

kwbr avatar Oct 12 '16 13:10 kwbr

What is the state of this request?

hvhaugwitz avatar Apr 22 '18 08:04 hvhaugwitz

See also my comments in #203, I would like to see this fixed too, although issues of migration are of course sensitive.

alerque avatar Apr 02 '21 10:04 alerque