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 +