ferguscollins / dotfiles

My Unix dotfiles
2 stars 0 forks source link

Global gitignore will not be recognised upon definition of `$XDG_CONFIG_HOME` #12

Open ferguscollins opened 4 years ago

ferguscollins commented 4 years ago

$XDG_CONFIG_HOME should be defined and the location of the global git ignore changed to $XDG_CONFIG_HOME/git/ignore. According to this resource, it should be defined in ~/.profile for a user, or /etc/profile for system-wide.

Check Steve Jorgensen's answer here quite far down.

The full XDG specification can be found here, which is broken down in the Arch wiki here. These variables should only be defined in absolute paths or they will be ignored.

The Windows directory for the global git ignore is ~\git\ignore

ferguscollins commented 4 years ago

Apparently you're not really supposed to change $XDG_CONFIG_HOME? Research and if it is not recommended then allow this and close.