From adf08b724bc11c7bac7a6824b08850dd0b80ce91 Mon Sep 17 00:00:00 2001 From: PorridgePi Date: Sat, 29 Aug 2020 14:58:09 +0800 Subject: [PATCH] updated bootstrap with win10 git cred manager for WSL --- .config/yadm/bootstrap | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap index 3b0197e..4c3d11a 100755 --- a/.config/yadm/bootstrap +++ b/.config/yadm/bootstrap @@ -20,4 +20,11 @@ if [ "$system_type" = "Linux" ] || [ "$system_type" = "WSL1" ] || [ "$system_typ else echo "All packages are installed." fi +if [ "$system_type" = "WSL1" ] || [ "$system_type" = "WSL1" ] ; then + # config WSL git authorisation + if [ ! -f /usr/bin/git-credential-manager ] ; then + echo '#!/bin/sh \nexec "/mnt/d/AppData/scoop/apps/git/current/mingw64/libexec/git-core/git-credential-manager.exe" $@' | sudo tee /usr/bin/git-credential-manager + sudo chmod +x /usr/bin/git-credential-manager + echo "added windows git cred manager" + fi fi