From c42215ae8b1f95694235cdd7e16569b697dcad8c Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Wed, 13 Mar 2024 15:51:03 -0400 Subject: [PATCH] Updated .gitconfig with distro_family for smaller list --- .gitconfig##template | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.gitconfig##template b/.gitconfig##template index b4e75dc..1d1c8b8 100644 --- a/.gitconfig##template +++ b/.gitconfig##template @@ -44,11 +44,11 @@ {% if yadm.os == "Darwin" %} helper = osxkeychain {% endif %} -{% if yadm.distro == "arch" %} +{% if yadm.distro_family == "arch" %} helper = /usr/lib/git-core/git-credential-libsecret {% endif %} -{% if yadm.distro == "EndeavourOS" %} - helper = /usr/lib/git-core/git-credential-libsecret +{% if yadm.distro_family == "Debian" %} + helper = /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret {% endif %} {% if yadm.distro == "Fedora" %} helper = /usr/libexec/git-core/git-credential-libsecret @@ -56,18 +56,6 @@ {% if yadm.distro == "openSUSE" %} helper = /usr/libexec/git/git-credential-libsecret {% endif %} -{% if yadm.distro == "Mint" %} - helper = /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret -{% endif %} -{% if yadm.distro == "Debian" %} - helper = /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret -{% endif %} -{% if yadm.distro == "Ubuntu" %} - helper = /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret -{% endif %} -{% if yadm.distro == "Pop" %} - helper = /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret -{% endif %} [alias] up = !git pull --prune $@ && git submodule update --init --recursive a = add