I’m trying to do the following in ~/.config/git/config
:
[include]
# A local gitconfig, outside of version control.
# If the file doesn't exist it is silently ignored
path = "${XDG_CONFIG_HOME:-$HOME/.config}"/git/local
But the local configuration is not being read. And I guess it’s because it’s not using the variable.
You must log in or register to comment.
#!/usr/bin/env bash tee -a "${XDG_CONFIG_HOME:-$HOME/.config}"/git/config &>/dev/null <<EOF [include] # A local gitconfig, outside of version control. # If the file doesn't exist it is silently ignored path = "${XDG_CONFIG_HOME:-$HOME/.config}"/git/local EOF