Skip to content

Commit e5ea170

Browse files
committed
更新 README 文件以添加针对 Linux 用户的注意事项,说明脚本如何定位 Cursor 安装位置,并确保用户能够通过常见路径访问 Cursor。同时,修正了 README 文件中的中文引号格式,以提升文档的准确性和可读性。
1 parent 3f7ae1f commit e5ea170

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ curl -fsSL https://aizaozao.com/accelerate.php/https://raw.githubusercontent.com
255255
curl -fsSL https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/master/scripts/run/cursor_linux_id_modifier.sh | sudo bash
256256
```
257257

258+
> **Note for Linux users:** The script attempts to find your Cursor installation by checking common paths (`/usr/bin`, `/usr/local/bin`, `$HOME/.local/bin`, `/opt/cursor`, `/snap/bin`), using the `which cursor` command, and searching within `/usr`, `/opt`, and `$HOME/.local`. If Cursor is installed elsewhere or not found via these methods, the script may fail. Ensure Cursor is accessible via one of these standard locations or methods.
259+
258260
**Windows**
259261

260262
```powershell

README_CN.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ curl -fsSL https://aizaozao.com/accelerate.php/https://raw.githubusercontent.com
195195
curl -fsSL https://aizaozao.com/accelerate.php/https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/master/scripts/run/cursor_linux_id_modifier.sh | sudo bash
196196
```
197197

198+
> **Linux 用户请注意:** 该脚本通过检查常用路径(`/usr/bin`, `/usr/local/bin`, `$HOME/.local/bin`, `/opt/cursor`, `/snap/bin`)、使用 `which cursor` 命令以及在 `/usr``/opt``$HOME/.local` 目录内搜索,来尝试定位您的 Cursor 安装。如果 Cursor 安装在其他位置或通过这些方法无法找到,脚本可能会失败。请确保可以通过这些标准位置或方法之一访问到 Cursor。
199+
198200
**Windows**
199201

200202
```powershell
@@ -386,7 +388,7 @@ mv app-update.yml app-update.yml.bak
386388
touch app-update.yml
387389
chmod 444 app-update.yml
388390

389-
# 打开Cursor设置,将更新模式设置为“无”,该步骤必须执行,否则Cursor依然会自动检查更新
391+
# 打开Cursor设置,将更新模式设置为"无",该步骤必须执行,否则Cursor依然会自动检查更新
390392
# 步骤:Settings -> Application -> Update, 将Mode设置为none
391393

392394
# 注意: cursor-updater修改方法可能已失效。但为了以防万一,还是删除更新目录并创建阻止文件

README_JP.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@ curl -fsSL https://aizaozao.com/accelerate.php/https://raw.githubusercontent.com
279279
curl -fsSL https://aizaozao.com/accelerate.php/https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/master/scripts/run/cursor_linux_id_modifier.sh | sudo bash
280280
```
281281

282+
> **Linuxユーザーへの注意:** スクリプトは、一般的なパス(`/usr/bin`, `/usr/local/bin`, `$HOME/.local/bin`, `/opt/cursor`, `/snap/bin`)の確認、`which cursor` コマンドの使用、および `/usr``/opt``$HOME/.local` ディレクトリ内の検索によって、Cursor のインストールを見つけようとします。Cursorが他の場所にインストールされているか、これらの方法で見つからない場合、スクリプトは失敗する可能性があります。これらの標準的な場所または方法のいずれかを通じてCursorにアクセスできることを確認してください。
283+
282284
**Windows**
283285

284286
```powershell

scripts/run/cursor_linux_id_modifier.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,7 @@ main() {
766766
echo -e "${BLUE}================================${NC}"
767767
echo
768768
echo -e "${YELLOW}[重要提示]${NC} 本工具优先修改js文件,更加安全可靠"
769+
echo -e "${YELLOW}[重要提示]${NC} Linux 用户请注意:脚本将尝试通过检查常用路径 (${BLUE}/usr/bin, /usr/local/bin, \\$HOME/.local/bin, /opt/cursor, /snap/bin${NC}), 使用 ${BLUE}which cursor${NC}, 及搜索 ${BLUE}/usr, /opt, \\$HOME/.local${NC} 来定位 Cursor。若无法找到,请确保 Cursor 安装在上述位置之一或可通过这些方法访问。"
769770
echo
770771
771772
# 执行主要功能

0 commit comments

Comments
 (0)