From 855fc9db2c4c9c80c02e8a11430b27859fa9977e Mon Sep 17 00:00:00 2001 From: js0ny Date: Sat, 9 Nov 2024 11:20:58 +0000 Subject: [PATCH] Sync 20241109 --- mac/mac_setup.sh | 4 ++++ win/Microsoft.PowerShell_profile.ps1 | 2 +- win/setup_win.ps1 | 7 ++++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/mac/mac_setup.sh b/mac/mac_setup.sh index 59f5da9..32cf946 100644 --- a/mac/mac_setup.sh +++ b/mac/mac_setup.sh @@ -1,10 +1,14 @@ #! /bin/zsh # This script is used to setup a new mac +# In a new mac (Sequoia) +# Enter the following command in the terminal +#! curl -fsSL https://raw.githubusercontent.com/js0ny/dotfiles/refs/heads/master/mac/mac_setup.sh | zsh echo "Running the setup script" # Xcode Command Line Tools echo "[INFO] Installing Xcode Command Line Tools" +echo "[ACTION] Request Human Takeover" xcode-select --install # System Preferences diff --git a/win/Microsoft.PowerShell_profile.ps1 b/win/Microsoft.PowerShell_profile.ps1 index 579133e..6730268 100644 --- a/win/Microsoft.PowerShell_profile.ps1 +++ b/win/Microsoft.PowerShell_profile.ps1 @@ -60,7 +60,7 @@ function Set-SystemTheme { Write-Host "已切换到浅色模式" } } -Set-Alias "theme" "Set-SystemTheme" +Set-Alias "dark-mode" "Set-SystemTheme" # Consistent with macOS (`dark-mode`) # Miscs # diff --git a/win/setup_win.ps1 b/win/setup_win.ps1 index dff111d..133929a 100644 --- a/win/setup_win.ps1 +++ b/win/setup_win.ps1 @@ -126,9 +126,14 @@ winget install -e --id XPFCKBRNFZQ62G --source msstore # WeChat in Windows Store # Others winget install -e --id Appest.TickTick +winget install -e --id 9NBLGGH4Z1SP --source msstore # ShareX (screen capture) # Fonts scoop install FiraCode-NF scoop install CascadiaCode-NF scoop install LXGWWenKai # 霞鹜文楷 -scoop install LXGWWenKaiMono # 霞鹜文楷Mono \ No newline at end of file +scoop install LXGWWenKaiMono # 霞鹜文楷Mono + +# WSL +scoop install archwsl +wsl --set-version Arch 1 \ No newline at end of file