From df44695ea794aa7d772043c426172d0be1fd7016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Tue, 6 Oct 2026 21:23:13 -0400 Subject: [PATCH] Draw the logout prompt on the terminal and describe what a failed China switch leaves --- bin/omarchy-region | 2 +- manual/52-china.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/omarchy-region b/bin/omarchy-region index 3321e735..85e02fdd 100755 --- a/bin/omarchy-region +++ b/bin/omarchy-region @@ -55,7 +55,7 @@ else prompt="Log out now to switch to English and the global mirrors?" log_out="Log out now" later="Later" reminder="Region set to Global. Log back in to switch to English and the global mirrors." fi -if [[ -t 0 && -t 1 ]] && gum confirm --affirmative "$log_out" --negative "$later" "$prompt"; then +if [[ -t 0 && -t 1 ]] && gum confirm --affirmative "$log_out" --negative "$later" "$prompt" 2>&1; then omarchy-system-logout else echo "$reminder" diff --git a/manual/52-china.md b/manual/52-china.md index cb33bde2..b316cd07 100644 --- a/manual/52-china.md +++ b/manual/52-china.md @@ -34,7 +34,7 @@ _Setup > Claude Code API_ points Claude Code at DeepSeek, Kimi Code, GLM, MiniMa ## Switching regions -_Setup > Region_ switches an installed machine either way, or run `omarchy region china` or `omarchy region global` from a terminal. Switching to China first runs a full system update, so the input method installs against current packages, then sets up China and downloads Rime Ice; the package mirrors move to `.cn` last, so a failed switch leaves the machine Global. The language and the developer mirrors follow at the next login, so the switch then offers to log out at once. +_Setup > Region_ switches an installed machine either way, or run `omarchy region china` or `omarchy region global` from a terminal. Switching to China first runs a full system update, so the input method installs against current packages, then installs the input method packages, records the region, moves the package mirrors to `.cn` and downloads Rime Ice. If the packages fail to install, the machine stays Global; if the Rime Ice download fails, China stays selected and running the switch again finishes it. The language and the developer mirrors follow at the next login, so the switch then offers to log out at once. Switching to Global moves packages back to the `.org` servers, the language back to English, and removes the developer mirrors, China Apps and the Claude Code API setup. It keeps the input method and the CJK fonts, so you can still type and read Chinese. `omarchy update` never changes the region or the language; only these switches do.