updated gitconfig and boostrap

This commit is contained in:
2020-08-29 13:32:42 +08:00
parent 2c5f1b7aa8
commit 84089d4541
2 changed files with 11 additions and 3 deletions

View File

@@ -1,8 +1,13 @@
#!/bin/sh #!/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" ] || [ "$system_type" = "WSL1" ] || [ "$system_type" = "WSL2" ]; then
if [ "$system_type" = "Linux" ]; then
# install zsh, zplug, neovim # install zsh, zplug, neovim
if ! command -v zsh > /dev/null 2>&1; then if ! command -v zsh > /dev/null 2>&1; then
echo "Installing zsh..." echo "Installing zsh..."

View File

@@ -1,3 +1,6 @@
[user] [user]
email = www.kunbao2006@gmail.com email = www.kunbao2006@gmail.com
name = PorridgePi name = PorridgePi
[credential]
helper = manager