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.

  • @ajr@lemmy.mlOP
    link
    fedilink
    12 years ago
    #!/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