Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
seanyeh
· 1y ago · 0 comments
git supports XDG - its config lives in `$XDG_CONFIG_HOME/git/config`. Though a lot of people still use the older location of ~/.gitconfig
Comments
[–]
pie_flavor
1y 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.
[–]
brewmarche
1y ago
As does vim (e.g. $XDG_CONFIG_HOME/vim/vimrc and $XDG_CONFIG_HOME/vim/pack/...)