diff --git a/GUIDE.md b/GUIDE.md index 41e5bb0..6cfb3d6 100644 --- a/GUIDE.md +++ b/GUIDE.md @@ -55,7 +55,7 @@ brew install tw93/tap/mole > > **重要:** 只选择一种方法安装!不要同时用两种方法,会产生冲突。 > -> 注意:第一次安装可能会要求你输入 Mac 的登录密码(输入时不会显示任何字符,这是正常的) +> 注意:第一次安装可能会要求你验证管理员权限,支持 Touch ID 或输入密码(输入时不会显示任何字符,这是正常的) --- @@ -152,6 +152,8 @@ mo analyze - `Delete`:删除(需确认) - `q`:退出 +> 需要管理员权限时会先尝试 Touch ID,失败或不支持时自动回退为密码输入。 + **小提示:** - 文件夹会按大小排序,一目了然 @@ -196,6 +198,21 @@ mo analyze **卸载:** 任何安装方式都用 `mo remove`(会自动识别安装方式,清理所有相关文件) +### Mole 会要求输入密码吗?支持 Touch ID 吗? + +Mole 通过 `sudo` 请求管理员权限,默认提示输入密码。若你已经为 `sudo` 启用了 Touch ID,同一个提示可以直接按指纹,失败后再输入密码。 + +### 如何让命令行支持 Touch ID? + +1. 打开配置文件:`sudo nano /etc/pam.d/sudo` +2. 在文件顶部注释行下面加入: + + ```txt + auth sufficient pam_tid.so + ``` + +3. 保存退出(`Ctrl+O` 回车,再 `Ctrl+X`)。以后在终端运行 `sudo` 命令时就会先提示 Touch ID,仍可随时改为输入密码。 + --- ## 需要更多帮助? diff --git a/README.md b/README.md index fc1e0fe..bc78dd9 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ - **Thorough Uninstall** - 22+ locations cleaned vs 1 standard, beats CleanMyMac/Lemon - **Interactive Disk Analyzer** - Navigate folders like a file manager, find and delete large files instantly - **Fast & Lightweight** - Terminal-based, zero bloat, arrow-key navigation with pagination +- **Touch ID Ready** - Defaults to password prompts, works with Touch ID when sudo is configured ## Quick Start @@ -146,6 +147,7 @@ Total: 156.8GB 1. **Is Mole safe?** – Mole focuses on cleaning caches and logs, without touching app settings, user documents, or system files. You can run `mo clean --dry-run` to preview what will be removed before actually cleaning. 2. **How often should I clean?** – About once a month, or whenever you notice disk space running low. 3. **Can I protect specific caches?** – Yes. Run `mo clean --whitelist` to interactively choose which caches to keep. Some common ones like Playwright browsers and HuggingFace models are already protected by default. +4. **Does Mole support Touch ID?** – Mole elevates through `sudo`, so expect a password prompt unless your `sudo` already supports Touch ID. ## Support