From 84089d4541bfdd30e3effc5edb2923d6ea190b96 Mon Sep 17 00:00:00 2001 From: PorridgePi Date: Sat, 29 Aug 2020 13:32:42 +0800 Subject: [PATCH] updated gitconfig and boostrap --- .config/yadm/bootstrap | 11 ++++++++--- .gitconfig | 3 +++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap index e73d43e..3b0197e 100755 --- a/.config/yadm/bootstrap +++ b/.config/yadm/bootstrap @@ -1,8 +1,13 @@ #!/bin/sh +if grep -q Microsoft /proc/version ; then + system_type="WSL1" +elif grep -q microsoft /proc/version ; then + system_type="WSL2" +else + system_type=$(uname -s) +fi -system_type=$(uname -s) - -if [ "$system_type" = "Linux" ]; then +if [ "$system_type" = "Linux" ] || [ "$system_type" = "WSL1" ] || [ "$system_type" = "WSL2" ]; then # install zsh, zplug, neovim if ! command -v zsh > /dev/null 2>&1; then echo "Installing zsh..." diff --git a/.gitconfig b/.gitconfig index 4d8043c..e491442 100644 --- a/.gitconfig +++ b/.gitconfig @@ -1,3 +1,6 @@ [user] email = www.kunbao2006@gmail.com name = PorridgePi +[credential] + helper = manager +