Y
Hacker News
new
|
ask
|
show
|
jobs
by
seanyeh
293 days ago
git supports XDG - its config lives in `$XDG_CONFIG_HOME/git/config`. Though a lot of people still use the older location of ~/.gitconfig
2 comments
pie_flavor
293 days ago
It will
load
config from there, if you manually create it there. If on a freshly initialized system you say `git config --global push.autoSetupRemote true`, it will write it to .gitconfig; it will not use .config unprompted.
link
brewmarche
293 days ago
As does vim (e.g. $XDG_CONFIG_HOME/vim/vimrc and $XDG_CONFIG_HOME/vim/pack/...)
link