<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://blog.dahuangggg.dev/feed.xml" rel="self" type="application/atom+xml" /><link href="https://blog.dahuangggg.dev/" rel="alternate" type="text/html" /><updated>2026-04-04T17:34:06+00:00</updated><id>https://blog.dahuangggg.dev/feed.xml</id><title type="html">DAHUANGGGG</title><subtitle>Record my findings.</subtitle><entry><title type="html">macOS defaults命令指南</title><link href="https://blog.dahuangggg.dev/2025/04/21/defaults-guide" rel="alternate" type="text/html" title="macOS defaults命令指南" /><published>2025-04-21T00:00:00+00:00</published><updated>2025-04-21T00:00:00+00:00</updated><id>https://blog.dahuangggg.dev/2025/04/21/defaults-guide</id><content type="html" xml:base="https://blog.dahuangggg.dev/2025/04/21/defaults-guide"><![CDATA[<h2 id="1-简介">1. 简介</h2>

<p><code class="language-plaintext highlighter-rouge">defaults</code>是macOS系统中的命令行工具，用于读取、写入和删除用户偏好设置。它允许用户精细调整系统和应用程序的行为，修改在系统设置中无法直接更改的高级选项。</p>

<blockquote>
  <p>⚠️ 注意：<strong>谨慎使用</strong>，不要盲目复制命令，使用前了解每个命令的具体作用</p>
</blockquote>

<h2 id="2-基本概念">2. 基本概念</h2>

<h3 id="21-域domain">2.1 域（Domain）</h3>

<ul>
  <li>偏好设置按域组织</li>
  <li>通常对应特定应用程序</li>
  <li>全局域：<code class="language-plaintext highlighter-rouge">NSGlobalDomain</code>（影响所有应用程序）</li>
</ul>

<h3 id="22-键值对">2.2 键值对</h3>

<ul>
  <li>每个域包含多个键值对</li>
  <li>键：字符串</li>
  <li>值：可以是字符串、数组、字典等</li>
</ul>

<h2 id="3-命令语法">3. 命令语法</h2>

<p>基本语法：</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>defaults <span class="o">[</span>操作] <span class="o">[</span>域] <span class="o">[</span>键] <span class="o">[</span>值]
</code></pre></div></div>

<h3 id="31-主要操作">3.1 主要操作</h3>

<ol>
  <li><strong>读取</strong></li>
</ol>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 读取所有域</span>
defaults <span class="nb">read</span>

<span class="c"># 读取特定域</span>
defaults <span class="nb">read </span>com.apple.finder

<span class="c"># 读取特定键</span>
defaults <span class="nb">read </span>com.apple.finder AppleShowAllFiles
</code></pre></div></div>

<ol>
  <li><strong>写入</strong></li>
</ol>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 写入字符串</span>
defaults write com.apple.finder AppleShowAllFiles YES

<span class="c"># 写入数组</span>
defaults write com.apple.dock persistent-apps <span class="nt">-array-add</span> <span class="s1">'&lt;dict/&gt;'</span>

<span class="c"># 写入字典</span>
defaults write com.apple.finder <span class="s1">'{ "ShowPathbar" = YES; }'</span>
</code></pre></div></div>

<ol>
  <li><strong>删除</strong></li>
</ol>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 删除特定键</span>
defaults delete com.apple.finder AppleShowAllFiles

<span class="c"># 删除整个域</span>
defaults delete com.apple.finder
</code></pre></div></div>

<h2 id="4-常用操作">4. 常用操作</h2>

<h3 id="41-系统界面和行为">4.1 系统界面和行为</h3>

<h4 id="411-dock设置">4.1.1 Dock设置</h4>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 加速Dock栏显示/隐藏</span>
defaults write com.apple.dock autohide-delay <span class="nt">-float</span> 0
defaults write com.apple.dock autohide-time-modifier <span class="nt">-float</span> 0.5

<span class="c"># 调整Dock栏图标大小</span>
defaults write com.apple.dock tilesize <span class="nt">-int</span> 36

<span class="c"># 移除Dock栏的动画效果</span>
defaults write com.apple.dock autohide-time-modifier <span class="nt">-float</span> 0

<span class="c"># 设置启动台图标排列</span>
defaults write com.apple.dock springboard-columns <span class="nt">-int</span> 7
defaults write com.apple.dock springboard-rows <span class="nt">-int</span> 6
</code></pre></div></div>

<h4 id="412-finder设置">4.1.2 Finder设置</h4>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 显示隐藏文件</span>
defaults write com.apple.finder AppleShowAllFiles YES

<span class="c"># 显示完整文件路径</span>
defaults write com.apple.finder _FXShowPosixPathInTitle <span class="nt">-bool</span> <span class="nb">true</span>

<span class="c"># 禁止在网络卷和U盘上生成.DS_Store文件</span>
defaults write com.apple.desktopservices DSDontWriteNetworkStores <span class="nt">-bool</span> TRUE
defaults write com.apple.desktopservices DSDontWriteUSBStores <span class="nt">-bool</span> TRUE
</code></pre></div></div>

<h4 id="413-桌面和文件管理">4.1.3 桌面和文件管理</h4>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 桌面不显示硬盘图标</span>
defaults write com.apple.finder ShowHardDrivesOnDesktop <span class="nt">-bool</span> <span class="nb">false</span>

<span class="c"># 桌面不显示外部硬盘</span>
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop <span class="nt">-bool</span> <span class="nb">false</span>

<span class="c"># 桌面不显示可移动媒体</span>
defaults write com.apple.finder ShowRemovableMediaOnDesktop <span class="nt">-bool</span> <span class="nb">false</span>
</code></pre></div></div>

<h3 id="42-系统性能和界面优化">4.2 系统性能和界面优化</h3>

<h4 id="421-动画和性能">4.2.1 动画和性能</h4>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 加快窗口缩放速度</span>
defaults write <span class="nt">-g</span> NSWindowResizeTime <span class="nt">-float</span> 0.001

<span class="c"># 禁用应用程序打开动画</span>
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled <span class="nt">-bool</span> <span class="nb">false</span>

<span class="c"># 加快Mission Control动画</span>
defaults write com.apple.dock expose-animation-duration <span class="nt">-float</span> 0.1

<span class="c"># 加快菜单栏和窗口显示速度</span>
defaults write NSGlobalDomain MenuPauseTime <span class="nt">-float</span> 0.5
</code></pre></div></div>

<h3 id="43-截图和文件操作">4.3 截图和文件操作</h3>

<h4 id="431-截图设置">4.3.1 截图设置</h4>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 更改截图保存位置</span>
defaults write com.apple.screencapture location ~/Desktop

<span class="c"># 更改截图文件名</span>
defaults write com.apple.screencapture name <span class="s2">"MyScreenshot"</span>

<span class="c"># 截图格式改为jpg</span>
defaults write com.apple.screencapture <span class="nb">type </span>jpg

<span class="c"># 禁用截图阴影效果</span>
defaults write com.apple.screencapture disable-shadow <span class="nt">-bool</span> <span class="nb">true</span>
</code></pre></div></div>

<h3 id="44-文本和应用程序设置">4.4 文本和应用程序设置</h3>

<h4 id="441-文本编辑">4.4.1 文本编辑</h4>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 默认以纯文本打开文件</span>
defaults write com.apple.TextEdit RichText <span class="nt">-int</span> 0

<span class="c"># 自动保存间隔（以秒为单位）</span>
defaults write com.apple.TextEdit AutosaveInterval <span class="nt">-int</span> 10
</code></pre></div></div>

<h4 id="442-safari浏览器">4.4.2 Safari浏览器</h4>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 显示完整网址</span>
defaults write com.apple.Safari ShowFullURLInSmartSearchField <span class="nt">-bool</span> <span class="nb">true</span>

<span class="c"># 启用开发者菜单</span>
defaults write com.apple.Safari IncludeDevelopMenu <span class="nt">-bool</span> <span class="nb">true</span>
</code></pre></div></div>

<h3 id="45-其他系统设置">4.5 其他系统设置</h3>

<h4 id="451-电池和电源">4.5.1 电池和电源</h4>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 显示电池百分比</span>
defaults write com.apple.menuextra.battery ShowPercent <span class="nt">-string</span> <span class="s2">"YES"</span>

<span class="c"># 在关闭盖子时不进入睡眠（仅限外接电源）</span>
defaults write com.apple.caffeinate.user DisableSleepOnLidClose <span class="nt">-bool</span> YES
</code></pre></div></div>

<h4 id="452-日期和时间">4.5.2 日期和时间</h4>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 24小时制</span>
defaults write NSGlobalDomain AppleTimeMachineUseLocalVolumes <span class="nt">-bool</span> <span class="nb">true</span>
</code></pre></div></div>

<h4 id="453-其他系统功能">4.5.3 其他系统功能</h4>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 在QuickLook中选择文本</span>
defaults write com.apple.finder QLEnableTextSelection <span class="nt">-bool</span> <span class="nb">true</span>

<span class="c"># 显示剪贴板历史记录</span>
defaults write com.apple.dock show-recents <span class="nt">-bool</span> <span class="nb">true</span>
</code></pre></div></div>

<h2 id="5-实用技巧">5. 实用技巧</h2>

<h3 id="51-查看信息">5.1 查看信息</h3>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 列出所有域</span>
defaults domains

<span class="c"># 搜索特定设置</span>
defaults find 关键词
</code></pre></div></div>

<h3 id="52-导出和导入设置">5.2 导出和导入设置</h3>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 导出设置</span>
defaults <span class="nb">export </span>com.apple.finder finder_backup.plist

<span class="c"># 导入设置</span>
defaults import com.apple.finder finder_backup.plist
</code></pre></div></div>

<h3 id="53-立即生效">5.3 立即生效</h3>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 重启Finder</span>
killall Finder

<span class="c"># 重启Dock</span>
killall Dock
</code></pre></div></div>

<h2 id="6-安全建议">6. 安全建议</h2>

<ul>
  <li>修改设置前先备份</li>
  <li>谨慎操作系统关键设置</li>
  <li>仅在了解命令含义时执行</li>
  <li>部分设置可能需要重新登录或重启</li>
</ul>

<h3 id="61-恢复方法">6.1 恢复方法</h3>

<ol>
  <li>使用<code class="language-plaintext highlighter-rouge">defaults delete</code>删除特定设置</li>
  <li>重置特定应用设置</li>
  <li>从备份文件恢复</li>
</ol>

<h2 id="7-附录">7. 附录</h2>

<h3 id="71-常用应用域">7.1 常用应用域</h3>

<table>
  <thead>
    <tr>
      <th>应用域</th>
      <th>说明</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">com.apple.finder</code></td>
      <td>访达</td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">com.apple.dock</code></td>
      <td>程序坞</td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">com.apple.screencapture</code></td>
      <td>屏幕截图</td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">NSGlobalDomain</code></td>
      <td>全局设置</td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">com.apple.Safari</code></td>
      <td>Safari浏览器</td>
    </tr>
  </tbody>
</table>

<h3 id="72-值类型">7.2 值类型</h3>

<ul>
  <li><code class="language-plaintext highlighter-rouge">-string</code>：字符串</li>
  <li><code class="language-plaintext highlighter-rouge">-int</code>：整数</li>
  <li><code class="language-plaintext highlighter-rouge">-float</code>：浮点数</li>
  <li><code class="language-plaintext highlighter-rouge">-bool</code>：布尔值</li>
  <li><code class="language-plaintext highlighter-rouge">-array</code>：数组</li>
  <li><code class="language-plaintext highlighter-rouge">-dict</code>：字典</li>
</ul>]]></content><author><name></name></author><category term="guide" /><category term="mac" /><category term="guide" /><summary type="html"><![CDATA[1. 简介]]></summary></entry><entry><title type="html">Mac新机配置指南</title><link href="https://blog.dahuangggg.dev/2025/04/20/macbook-guide" rel="alternate" type="text/html" title="Mac新机配置指南" /><published>2025-04-20T00:00:00+00:00</published><updated>2025-04-22T00:00:00+00:00</updated><id>https://blog.dahuangggg.dev/2025/04/20/macbook-guide</id><content type="html" xml:base="https://blog.dahuangggg.dev/2025/04/20/macbook-guide"><![CDATA[<h2 id="1-系统基础设置">1. 系统基础设置</h2>

<h3 id="11-键盘与触控板设置">1.1 键盘与触控板设置</h3>

<ul>
  <li><strong>光标响应优化</strong>
    <ol>
      <li>进入<code class="language-plaintext highlighter-rouge">系统设置 → 键盘</code></li>
      <li>将键重复速率调至最快</li>
      <li>将重复前延迟调至最短</li>
    </ol>
  </li>
  <li><strong>三指拖移功能</strong>
    <ol>
      <li>进入<code class="language-plaintext highlighter-rouge">系统设置 → 辅助功能 → 指针控制 → 触控板选项</code></li>
      <li>启用”启用拖移”</li>
      <li>将拖移样式改为”三指拖移”</li>
    </ol>
  </li>
  <li><strong>输入法优化</strong>
    <ol>
      <li><code class="language-plaintext highlighter-rouge">系统设置 → 键盘</code>，设置按下🌐(fn)键时更改输入法（便捷切换中英文）</li>
      <li><code class="language-plaintext highlighter-rouge">系统设置 → 键盘 → 输入法</code>，取消勾选”长按以启用全大写键入”</li>
    </ol>
  </li>
  <li>轻触点击
    <ol>
      <li><code class="language-plaintext highlighter-rouge">系统设置 → 触控板</code>，开启轻点来点按</li>
    </ol>
  </li>
</ul>

<h3 id="12-安全与访问">1.2 安全与访问</h3>

<ul>
  <li><strong>允许安装任意来源的App</strong></li>
</ul>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nb">sudo </span>spctl <span class="nt">--master-disable</span>
</code></pre></div></div>

<p>此命令会禁用macOS的Gatekeeper安全功能，允许安装来自任何位置的应用程序。完成后，前往： <code class="language-plaintext highlighter-rouge">系统设置 → 隐私与安全 → 安全 → 安装应用</code>，选择”任何来源”选项。</p>

<blockquote>
  <p>⚠️ 注意：这会降低系统安全性，请只安装信任的应用程序。</p>
</blockquote>

<ul>
  <li><strong>取消四位数密码限制</strong></li>
</ul>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>pwpolicy <span class="nt">-clearaccountpolicies</span>
</code></pre></div></div>

<p>默认情况下，macOS要求密码至少为四位数字。此命令可消除这一限制，允许设置更简单的密码。</p>

<h3 id="13-界面优化">1.3 界面优化</h3>

<p><a href="/2025/04/21/defaults-guide"><code class="language-plaintext highlighter-rouge">defaults</code></a>是macOS用户默认设置系统的命令行工具，用于读取、写入和删除macOS应用程序的用户偏好设置。</p>

<ul>
  <li><strong>程序坞</strong></li>
</ul>

<p>Macbook屏幕空间有限，隐藏Dock可以显示更多信息。以下命令让Dock在自动隐藏模式下反应更迅速：</p>

<p><code class="language-plaintext highlighter-rouge">系统设置 → 桌面与程序坞</code>，开启自动隐藏和显示程序坞</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 设置启动坞动画时间为0.5秒 </span>
defaults write com.apple.dock autohide-time-modifier <span class="nt">-float</span> 0.5 <span class="o">&amp;&amp;</span> killall Dock

<span class="c"># 设置启动坞响应时间最短</span>
defaults write com.apple.dock autohide-delay <span class="nt">-int</span> 0 <span class="o">&amp;&amp;</span> killall Dock

<span class="c"># 恢复默认设置（如需）</span>
defaults delete com.apple.dock autohide-time-modifier <span class="o">&amp;&amp;</span> killall Dock
defaults delete com.apple.Dock autohide-delay <span class="o">&amp;&amp;</span> killall Dock
</code></pre></div></div>

<ul>
  <li><strong>启动台</strong></li>
</ul>

<p>自定义启动台（Launchpad）中应用图标的排列方式：</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 设置列数和行数</span>
defaults write com.apple.dock springboard-columns <span class="nt">-int</span> 7
defaults write com.apple.dock springboard-rows <span class="nt">-int</span> 6
killall Dock

<span class="c"># 恢复默认设置（如需）</span>
defaults write com.apple.dock springboard-rows Default
defaults write com.apple.dock springboard-columns Default
killall Dock
</code></pre></div></div>

<ul>
  <li>文件和文件夹</li>
</ul>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 禁止在网络卷和U盘上生成.DS_Store文件</span>
defaults write com.apple.desktopservices DSDontWriteNetworkStores <span class="nt">-bool</span> TRUE
defaults write com.apple.desktopservices DSDontWriteUSBStores <span class="nt">-bool</span> TRUE

<span class="c"># 在访达顶部显示文件夹完整路径</span>
defaults write com.apple.finder _FXShowPosixPathInTitle <span class="nt">-bool</span> TRUE <span class="o">&amp;&amp;</span> killall Finder

<span class="c"># 恢复默认设置（如需）</span>
defaults delete com.apple.finder _FXShowPosixPathInTitle <span class="o">&amp;&amp;</span> killall Finder
</code></pre></div></div>

<hr />

<h2 id="2-连接互联网">2. 连接互联网</h2>

<blockquote>
  <p>⚠️ 网络优化工具</p>
</blockquote>

<h3 id="付费选项">付费选项</h3>

<p><a href="https://nssurge.com">Surge Mac</a> / <a href="https://apps.apple.com/us/app/shadowrocket/id932747118">Shadowrocket</a> /<a href="https://apps.apple.com/us/app/quantumult-x/id1443988620">Quantumult X</a> …</p>

<h3 id="免费选项">免费选项</h3>

<p><a href="https://t.me/clashbackups">clash相关</a></p>

<hr />

<h2 id="3-软件安装与配置">3. 软件安装与配置</h2>

<h3 id="31-前置工具">3.1 前置工具</h3>

<h4 id="xcode-command-line-tools">Xcode Command Line Tools</h4>

<p>包含基本编译工具和命令行工具，是许多开发工具和Homebrew的前置依赖。</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>xcode-select <span class="nt">--install</span>
</code></pre></div></div>

<h4 id="homebrew"><a href="https://brew.sh">Homebrew</a></h4>

<p>macOS上最流行的软件包管理工具，便于安装和管理各种应用程序。</p>

<p>1. <strong>安装Homebrew</strong></p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>/bin/bash <span class="nt">-c</span> <span class="s2">"</span><span class="si">$(</span>curl <span class="nt">-fsSL</span> https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh<span class="si">)</span><span class="s2">"</span>
</code></pre></div></div>

<p>完成后，根据终端提示将Homebrew添加到PATH环境变量。</p>

<p>2. <strong>常用命令</strong></p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install </span>formula          <span class="c"># 安装命令行软件</span>
brew <span class="nb">install</span> <span class="nt">--cask</span> formula   <span class="c"># 安装GUI应用程序</span>
brew uninstall formula        <span class="c"># 卸载软件</span>
brew update                   <span class="c"># 更新Homebrew自身</span>
brew upgrade                  <span class="c"># 更新所有已安装的软件</span>
brew search text              <span class="c"># 查找软件包</span>
brew info text                <span class="c"># 查看软件详细信息</span>
brew list                     <span class="c"># 列出已安装的所有软件</span>
brew doctor                   <span class="c"># 检查系统中的问题</span>
brew cleanup                  <span class="c"># 清理旧版本和缓存</span>
</code></pre></div></div>

<h3 id="32-系统增强">3.2 系统增强</h3>

<h4 id="raycast"><a href="https://www.raycast.com">Raycast</a></h4>

<p>超级强大的启动器工具，可以替代macOS的Spotlight，提供更多功能和更好的用户体验。</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> raycast
</code></pre></div></div>

<p>安装后，建议：</p>

<ol>
  <li>设置快捷键（通常为<code class="language-plaintext highlighter-rouge">⌘+Space</code>，需要先禁用Spotlight的快捷键）</li>
  <li>安装常用扩展（剪贴板历史、窗口管理、计算器等）</li>
  <li>设置自定义脚本和工作流</li>
</ol>

<p><a href="https://sspai.com/post/79769">配置指南</a>提供了详细的设置步骤和推荐配置。</p>

<h4 id="aldente"><a href="https://apphousekitchen.com">AlDente</a></h4>

<p>电池管理工具，限制MacBook充电上限，延长电池寿命，免费版即可满足基本需求。</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> aldente
</code></pre></div></div>

<h4 id="prettyclean"><a href="https://www.prettyclean.cc/en">PrettyClean</a></h4>

<p>磁盘清理工具，帮助释放磁盘空间，找出并删除不必要的文件。</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> prettyclean
</code></pre></div></div>

<h3 id="33-文件处理">3.3 文件处理</h3>

<h4 id="keka"><a href="https://www.keka.io/en/">Keka</a></h4>

<p>功能强大的压缩解压工具，支持多种压缩格式。</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> keka
</code></pre></div></div>

<p><strong>支持格式</strong>：</p>

<ul>
  <li>压缩：7Z、ZIP、TAR、GZIP、BZIP2、XZ、LZIP、DMG、ISO</li>
  <li>解压：RAR、7Z、LZMA、ZIP、ZIPX、TAR等多种格式</li>
</ul>

<p>可以在偏好设置中配置默认压缩格式和压缩级别。</p>

<h4 id="iina"><a href="https://iina.io">IINA</a></h4>

<p>开源的视频播放器，专为macOS设计，界面美观，功能强大。</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> iina
</code></pre></div></div>

<p>主要特点：</p>

<ul>
  <li>支持几乎所有视频格式</li>
  <li>基于mpv播放引擎，性能出色</li>
  <li>原生macOS界面设计</li>
  <li>手势控制和触控板支持</li>
  <li>画中画模式</li>
  <li>自动加载字幕</li>
  <li>视频增强和滤镜</li>
  <li>播放列表和历史记录</li>
</ul>

<p>首次使用时，建议在偏好设置中配置默认播放行为、字幕样式和快捷键。</p>

<h4 id="shottr"><a href="https://shottr.cc">Shottr</a></h4>

<p>功能丰富的截图工具，超越了macOS内置的截图功能。</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> shottr
</code></pre></div></div>

<p>主要功能：</p>

<ul>
  <li>区域截图、窗口截图、全屏截图</li>
  <li>滚动截图（捕捉长网页）</li>
  <li>OCR文字识别</li>
  <li>像素测量</li>
  <li>颜色拾取</li>
  <li>标注工具（箭头、文字、高亮等）</li>
  <li>马赛克和模糊工具</li>
  <li>图片调整和裁剪</li>
</ul>

<p>建议设置自定义快捷键，并配置自动保存路径。</p>

<h4 id="quickrecorder"><a href="https://lihaoyun6.github.io/quickrecorder/">QuickRecorder</a></h4>

<p>轻量级高性能的屏幕录制工具。</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> quickrecorder
</code></pre></div></div>

<h4 id="bob付费"><a href="https://bobtranslate.com">Bob</a>（付费）</h4>

<p>强大的翻译和OCR工具，可以快速翻译选中的文本或屏幕上的文字。</p>

<p><a href="https://apps.apple.com/us/app/bob-%E7%BF%BB%E8%AF%91%E5%92%8C-ocr-%E5%B7%A5%E5%85%B7/id1630034110?mt=12">AppStore下载链接</a></p>

<h4 id="pdfgear"><a href="https://www.pdfgear.com">PDFgear</a></h4>

<p>全功能PDF编辑和转换工具，提供了丰富的PDF处理功能。</p>

<p><a href="https://apps.apple.com/us/app/pdfgear-pdf-editor-reader/id6469021132?mt=12">AppStore下载链接</a></p>

<p>主要功能：</p>

<ul>
  <li>PDF编辑：添加、删除、修改文本和图像</li>
  <li>PDF标注：高亮、下划线、注释等</li>
  <li>PDF转换：转换为Word、Excel、图片等格式</li>
  <li>PDF合并和拆分</li>
  <li>表单填写和创建</li>
  <li>OCR文字识别</li>
  <li>密码保护和权限设置</li>
  <li>电子签名</li>
</ul>

<h3 id="34-markdown编辑">3.4 Markdown编辑</h3>

<h4 id="obsidian免费">Obsidian（免费）</h4>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> obsidian
</code></pre></div></div>

<h4 id="typora付费">Typora（付费）</h4>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> typora
</code></pre></div></div>

<blockquote>
  <p>💡 如果需要构建知识网络和复杂笔记系统，选择Obsidian；如果主要是写作和简单笔记，Typora更直观易用。</p>
</blockquote>

<h3 id="35-社交通讯">3.5 社交通讯</h3>

<h4 id="wechat"><a href="https://www.wechat.com">WeChat</a></h4>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> wechat
</code></pre></div></div>

<p><a href="https://apps.apple.com/us/app/wechat/id836500024?mt=12">AppStore下载链接</a></p>

<h4 id="qq"><a href="https://im.qq.com/index/">QQ</a></h4>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> qq
</code></pre></div></div>

<p><a href="https://im.qq.com/macqq/index.shtml">官网下载链接</a></p>

<h4 id="telegram"><a href="https://telegram.org">Telegram</a></h4>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> telegram
</code></pre></div></div>

<h3 id="36-浏览器">3.6 浏览器</h3>

<h4 id="chrome">Chrome</h4>

<p>全球最流行的浏览器，速度快、扩展丰富、与Google服务深度集成。</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> google-chrome
</code></pre></div></div>

<h4 id="firefox">Firefox</h4>

<p>注重隐私和自由的开源浏览器，提供了丰富的隐私保护功能。</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> firefox

</code></pre></div></div>

<h4 id="arc">Arc</h4>

<p>创新的现代浏览器，重新思考了浏览体验，独特的界面和功能设计，已经不需要邀请码了，可以试一试。</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> arc
</code></pre></div></div>

<h3 id="37-quicklook插件">3.7 QuickLook插件</h3>

<p>macOS的QuickLook功能是按下空格键快速预览文件，以下插件可以增强这一功能：</p>

<h4 id="syntax-highlight"><a href="https://github.com/sbarex/SourceCodeSyntaxHighlight">Syntax Highlight</a></h4>

<p>代码高亮显示</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> syntax-highlight
</code></pre></div></div>

<h4 id="qlmarkdown"><a href="https://github.com/toland/qlmarkdown">QLMarkdown</a></h4>

<p>查看.md文件</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> qlmarkdown
</code></pre></div></div>

<h2 id="4-开发环境配置">4. 开发环境配置</h2>

<h3 id="41-终端增强">4.1 终端增强</h3>

<h4 id="iterm2"><a href="https://iterm2.com">iTerm2</a></h4>

<p>更好用的终端模拟器</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> iterm2
</code></pre></div></div>

<h4 id="oh-my-zsh"><a href="https://ohmyz.sh">Oh-My-Zsh</a></h4>

<p>美化和增强Zsh功能的框架。</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>sh <span class="nt">-c</span> <span class="s2">"</span><span class="si">$(</span>curl <span class="nt">-fsSL</span> https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh<span class="si">)</span><span class="s2">"</span>
</code></pre></div></div>

<h4 id="插件">插件</h4>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 自动补全插件</span>
git clone https://github.com/zsh-users/zsh-autosuggestions <span class="k">${</span><span class="nv">ZSH_CUSTOM</span><span class="k">:-</span><span class="p">~/.oh-my-zsh/custom</span><span class="k">}</span>/plugins/zsh-autosuggestions

<span class="c"># 语法高亮插件</span>
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git <span class="k">${</span><span class="nv">ZSHCUSTOM</span><span class="k">:-</span><span class="p">~/.oh-my-zsh/custom</span><span class="k">}</span>/plugins/zsh-syntax-highlighting
</code></pre></div></div>

<p>在<code class="language-plaintext highlighter-rouge">~/.zshrc</code>中添加配置</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">plugins</span><span class="o">=(</span>git zsh-autosuggestions zsh-syntax-highlighting<span class="o">)</span>
</code></pre></div></div>

<h4 id="starship"><a href="https://starship.rs">Starship</a></h4>

<p>轻量级、快速的shell提示符自定义工具。</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install </span>starship
<span class="nb">echo</span> <span class="s1">'eval "$(starship init zsh)"'</span> <span class="o">&gt;&gt;</span> ~/.zshrc
</code></pre></div></div>

<p>添加配置后，重启终端或执行<code class="language-plaintext highlighter-rouge">source ~/.zshrc</code>使配置生效。</p>

<ul>
  <li><a href="https://starship.rs/config/">Configuration</a>：可以创建<code class="language-plaintext highlighter-rouge">~/.config/starship.toml</code>文件进行详细配置</li>
  <li><a href="https://starship.rs/presets/">Presets</a>：提供了多种预设配置，可以直接使用</li>
</ul>

<p>例如，使用Tokyo Night主题：</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>starship preset tokyo-night <span class="o">&gt;</span> ~/.config/starship.toml
</code></pre></div></div>

<h3 id="42-终端工具推荐">4.2 终端工具推荐</h3>

<p>以下是一系列强大的命令行工具，可以提升开发效率：</p>

<ul>
  <li>
    <p><strong><a href="https://neovim.io/">neovim</a></strong>：现代化vim，功能强大的文本编辑器</p>

    <div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install </span>neovim
</code></pre></div>    </div>

    <p>Neovim是Vim的分支，添加了许多现代功能，如异步操作、LSP支持、Lua配置等。</p>
  </li>
  <li>
    <p><strong><a href="https://github.com/tmux/tmux">tmux</a></strong>：终端复用工具</p>

    <div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install </span>tmux
</code></pre></div>    </div>

    <p>tmux允许在单个终端窗口中运行多个终端会话，支持分屏、会话保存和恢复等功能。特别适合远程服务器工作。</p>
  </li>
  <li>
    <p><strong><a href="https://github.com/jesseduffield/lazygit">lazygit</a></strong>：git终端UI</p>

    <div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install </span>lazygit
</code></pre></div>    </div>

    <p>lazygit提供了Git操作的终端用户界面，可以更直观地查看和管理代码仓库，执行提交、合并、拉取等操作。</p>
  </li>
  <li>
    <p><strong><a href="https://github.com/pyenv/pyenv">pyenv</a></strong>：Python版本管理器</p>

    <div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install </span>pyenv
</code></pre></div>    </div>

    <p>pyenv可以在系统中安装和管理多个Python版本，便于在不同项目间切换，避免版本冲突。</p>
  </li>
  <li>
    <p><strong><a href="https://github.com/ajeetdsouza/zoxide">zoxide</a></strong>：更智能快速的cd命令</p>

    <div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install </span>zoxide
</code></pre></div>    </div>

    <p>zoxide是cd命令的智能替代，会记住常用的目录，允许使用模糊匹配快速导航。例如<code class="language-plaintext highlighter-rouge">z proj</code>可能会跳转到<code class="language-plaintext highlighter-rouge">~/projects/myproject</code>。</p>
  </li>
  <li>
    <p><strong><a href="https://github.com/lsd-rs/lsd">lsd</a></strong>：更智能快速的ls命令</p>

    <div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install </span>lsd
</code></pre></div>    </div>

    <p>lsd是ls命令的现代替代，提供彩色输出、图标支持、Git集成等功能，使目录列表更直观。</p>
  </li>
  <li>
    <p><strong><a href="https://github.com/Aloxaf/fzf-tab">fzf-tab</a></strong>：增强shell补全功能 <a href="https://github.com/Aloxaf/fzf-tab?tab=readme-ov-file#install">安装说明</a></p>

    <p>fzf-tab使用fzf模糊查找器增强Zsh的Tab补全，提供交互式菜单和预览功能。需要先安装fzf：</p>

    <div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install </span>fzf
</code></pre></div>    </div>
  </li>
  <li>
    <p><strong><a href="https://yazi-rs.github.io/">yazi</a></strong>：命令行文件管理器</p>

    <div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install </span>yazi
</code></pre></div>    </div>

    <p>yazi是一个快速、功能丰富的终端文件管理器，支持图像预览、视频缩略图、搜索和过滤等功能。</p>
  </li>
  <li>
    <p><strong><a href="https://github.com/tldr-pages/tldr">tldr</a></strong>：简化版命令手册</p>

    <div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install </span>tldr
</code></pre></div>    </div>

    <p>tldr(Too Long; Didn’t Read)可以列出命令最常用的形式，不用翻看复杂的help手册。</p>
  </li>
</ul>

<h3 id="43-容器与虚拟化">4.3 容器与虚拟化</h3>

<h4 id="docker"><a href="https://www.docker.com">Docker</a></h4>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> docker
</code></pre></div></div>

<p>安装后，Docker Desktop应用会被安装到应用程序文件夹。首次启动需要管理员权限，并会自动配置Docker环境。</p>

<p>常用Docker命令：</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>docker ps <span class="c"># 列出运行中的容器</span>
docker images <span class="c"># 列出本地镜像</span>
docker build <span class="nt">-t</span> name:tag <span class="nb">.</span> <span class="c"># 从Dockerfile构建镜像</span>
docker run <span class="nt">-p</span> 8080:80 image_name <span class="c"># 运行容器并映射端口</span>
docker-compose up <span class="nt">-d</span> <span class="c"># 使用docker-compose启动服务</span>
</code></pre></div></div>

<h4 id="orbstack"><a href="https://orbstack.dev">OrbStack</a></h4>

<p>Docker Desktop的替代品，提供更快速、更轻量级的容器管理体验，同时还包含终端虚拟机功能。</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> orbstack
docker context use orbstack <span class="c"># docker 切换 orbstack</span>
</code></pre></div></div>

<ul>
  <li>资源占用更少（内存、CPU和电池）</li>
  <li>启动速度更快</li>
  <li>集成了Linux虚拟机</li>
  <li>网络性能更好</li>
  <li>更现代的用户界面</li>
</ul>

<p>使用OrbStack后，可以继续使用标准的Docker CLI命令，但执行速度会更快，资源占用更少。OrbStack还提供了简单的虚拟机管理功能，可以轻松创建和管理Linux虚拟机。</p>

<h4 id="parallels-desktop付费"><a href="https://www.parallels.com">Parallels Desktop</a>（付费）</h4>

<p>macOS上最流行的商业虚拟机软件，允许在Mac上运行Windows、Linux和其他操作系统。</p>

<h4 id="utm"><a href="https://mac.getutm.app">UTM</a></h4>

<p>开源的虚拟机管理器，基于QEMU，支持在Mac上运行几乎任何操作系统。</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> utm
</code></pre></div></div>

<h3 id="44-开发ide与工具">4.4 开发IDE与工具</h3>

<h4 id="vscode"><a href="https://code.visualstudio.com">Vscode</a></h4>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> visual-studio-code
</code></pre></div></div>

<p>建议启用自动保存：File &gt; Auto Save</p>

<h4 id="jetbrains"><a href="https://www.jetbrains.com">JetBrains</a></h4>

<p>从ToolBox下载</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> jetbrains-toolbox
</code></pre></div></div>

<h4 id="navicat付费"><a href="https://www.navicat.com">Navicat</a>（付费）</h4>

<p>能全面的数据库管理工具，支持多种数据库系统。</p>

<h4 id="termius"><a href="https://termius.com">Termius</a></h4>

<p>现代化的SSH客户端，提供了友好的界面和多平台同步功能。</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> termius
</code></pre></div></div>

<h4 id="postman"><a href="https://www.postman.com">Postman</a></h4>

<p>API测试工具</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> postman
</code></pre></div></div>

<h3 id="45-其他软件">4.5 其他软件</h3>

<h4 id="topnotch"><a href="https://topnotch.app">TopNotch</a></h4>

<p>美化：Makes the notch disappear like a 🥷.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install</span> <span class="nt">--cask</span> topnotch
</code></pre></div></div>

<h4 id="ice"><a href="https://github.com/jordanbaird/Ice">Ice</a></h4>

<p>强大的菜单栏管理工具。</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install </span>jordanbaird-ice
</code></pre></div></div>

<h4 id="其他付费软件">其他付费软件</h4>

<p>Office, Adobe …</p>

<blockquote>
  <p>破解软件站：https://macked.app</p>

  <p>注意：可能存在安全风险和法律问题，尽量使用正版软件或开源替代品。</p>
</blockquote>

<hr />

<h2 id="5-常用快捷键">5. 常用快捷键</h2>

<blockquote>
  <p>掌握快捷键可大幅提升工作效率。完整列表请参考<a href="https://support.apple.com/zh-cn/102650">官方文档</a></p>

  <p>Command -&gt; <kbd>⌘</kbd></p>

  <p>Shift -&gt; <kbd>⇧</kbd></p>

  <p>Control -&gt; <kbd>⌃</kbd></p>

  <p>Option -&gt; <kbd>⌥</kbd></p>

  <p>Return -&gt; <kbd>↩</kbd></p>

  <p>Tab -&gt; <kbd>⇥</kbd></p>

  <p>Fn -&gt; <kbd>🌐</kbd></p>
</blockquote>

<h3 id="51-基础操作">5.1 基础操作</h3>

<p><kbd>Command</kbd>+<kbd>X</kbd>：剪切 - 剪切选定的文本或项目并复制到剪贴板</p>

<p><kbd>Command</kbd>+<kbd>C</kbd>：拷贝 - 复制选定的文本或项目到剪贴板，不会删除原内容</p>

<p><kbd>Command</kbd>+<kbd>V</kbd>：粘贴 - 将剪贴板内容粘贴到当前位置</p>

<p><kbd>Command</kbd>+<kbd>A</kbd>：全选 - 选择当前文档或窗口中的所有内容</p>

<p><kbd>Command</kbd>+<kbd>Z</kbd>：撤销 - 撤销上一次操作，在大多数应用中可多次使用</p>

<p><kbd>Command</kbd>+<kbd>F</kbd>：查找 - 打开查找窗口以搜索当前文档或页面中的文本</p>

<p><kbd>Command</kbd>+<kbd>S</kbd>：保存 - 保存当前文档</p>

<p><kbd>Command</kbd>+<kbd>R</kbd>：刷新 - 在浏览器中刷新页面，在Finder中刷新文件夹内容</p>

<p><kbd>Command</kbd>+<kbd>Tab</kbd>：切换下一个程序 - 在打开的应用程序之间切换</p>

<p><kbd>Command</kbd>+<kbd>`</kbd>（Tab上方）：切换同一程序的不同窗口 - 在当前应用的多个窗口之间切换</p>

<p><kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>Z</kbd>：反撤销 - 重做刚才撤销的操作</p>

<p><kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>S</kbd>：另存为 - 将当前文档保存为新文件</p>

<h3 id="窗口">窗口</h3>

<p><kbd>Command</kbd>+<kbd>H</kbd>：隐藏窗口 - 隐藏当前应用程序的窗口</p>

<p><kbd>Command</kbd>+<kbd>M</kbd>：最小化窗口 - 将当前窗口最小化到Dock</p>

<p><kbd>Command</kbd>+<kbd>N</kbd>：新建 - 创建新文档或窗口</p>

<p><kbd>Command</kbd>+<kbd>W</kbd>：关闭 - 关闭当前窗口或标签页</p>

<p><kbd>Command</kbd>+<kbd>Q</kbd>：退出 - 完全退出当前应用程序</p>

<p><kbd>Command</kbd>+<kbd>,</kbd>：应用设置 - 打开当前应用程序的偏好设置</p>

<p><kbd>Command</kbd>+<kbd>Space</kbd>：Spotlight搜索 - 打开系统级搜索功能</p>

<p><kbd>Fn</kbd>+<kbd>F</kbd>：全屏</p>

<h3 id="截图">截图</h3>

<p><kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>3</kbd>：截取整个屏幕 - 将截图保存到桌面（或自定义位置）</p>

<p><kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>4</kbd>：截取选择区域 - 变为十字光标，可选择要截图的区域</p>

<p><kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>4</kbd> 再按 <kbd>Space</kbd>：自动框选窗口 - 变为相机图标，可选择要截图的窗口</p>

<p><kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>5</kbd>：截图详细设置 - 打开截图工具栏，可选择截图类型、录屏和保存位置</p>

<h3 id="finder访达">Finder（访达）</h3>

<p><kbd>Return</kbd>：重命名 - 选中文件后按回车可重命名</p>

<p><kbd>Space</kbd>：快速查看 - 预览选中的文件，无需打开应用程序</p>

<p><kbd>Command</kbd>+<kbd>O</kbd>：打开 - 使用默认应用程序打开选中的文件</p>

<p><kbd>Command</kbd>+<kbd>N</kbd>：新开一个窗口 - 打开新的Finder窗口</p>

<p><kbd>Command</kbd>+<kbd>T</kbd>：新开一个页面 - 在当前Finder窗口中打开新标签页</p>

<p><kbd>Command</kbd>+<kbd>Delete</kbd>：移入废纸篓 - 将选中的项目移动到废纸篓</p>

<p><kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>N</kbd>：新建文件夹 - 在当前位置创建新文件夹</p>

<p><kbd>Command</kbd>+<kbd>[</kbd>：返回 - 返回上一个访问的文件夹</p>

<p><kbd>Command</kbd>+<kbd>]</kbd>：前进 - 前进到下一个访问的文件夹</p>

<p><kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>.</kbd>：显示隐藏文件 - 显示以.开头的隐藏文件/文件夹</p>

<h3 id="浏览器">浏览器</h3>

<p><kbd>Command</kbd>+<kbd>L</kbd>：光标移到地址栏 - 快速选中并编辑URL</p>

<p><kbd>Command</kbd>+<kbd>+</kbd>：放大页面 - 增加网页内容大小</p>

<p><kbd>Command</kbd>+<kbd>-</kbd>：缩小页面 - 减小网页内容大小</p>

<p><kbd>Command</kbd>+<kbd>0</kbd>：恢复默认大小 - 将网页缩放重置为100%</p>

<p><kbd>Command</kbd>+<kbd>T</kbd>：新开页面 - 打开新标签页</p>

<p><kbd>Command</kbd>+<kbd>W</kbd>：关闭页面 - 关闭当前标签页</p>

<p><kbd>Command</kbd>+<kbd>Y</kbd>：打开历史记录 - 查看浏览历史</p>

<p><kbd>Command</kbd>+<kbd>[</kbd>：返回上一个页面 - 导航到之前访问的页面</p>

<p><kbd>Command</kbd>+<kbd>]</kbd>：前往下一个页面 - 导航到之后访问的页面</p>

<p><kbd>Command</kbd>+<kbd>W</kbd>：关闭页面 - 关闭当前标签页</p>

<p><kbd>Control</kbd>+<kbd>Tab</kbd>：切换下一个标签页 - 在浏览器标签页之间向前切换</p>

<p><kbd>Control</kbd>+<kbd>Shift</kbd>+<kbd>Tab</kbd>：切换上一个标签页 - 在浏览器标签页之间向后切换</p>

<p><kbd>Command</kbd>+<kbd>1</kbd>：切换到第一个标签页</p>

<p><kbd>Command</kbd>+<kbd>2</kbd>：切换到第二个标签页</p>

<p>…</p>

<h3 id="其他">其他</h3>

<p><kbd>Command</kbd>+<kbd>Control</kbd>+<kbd>Space</kbd>：表情符号与特殊字符 - 打开字符查看器</p>

<p><kbd>Command</kbd>+<kbd>Tab</kbd> 然后按 <kbd>Q</kbd>：快速退出应用 - 在应用切换器中选中应用后按Q可直接退出</p>

<h2 id="备注">备注</h2>

<blockquote>
  <p>💻 破解软件请谨慎使用，可能存在安全风险和法律问题，建议尽量使用正版软件或开源替代品。</p>
</blockquote>

<blockquote>
  <p>🔄 本指南最后更新于2025年4月21日，部分内容可能随时间变化而过时。</p>
</blockquote>]]></content><author><name></name></author><category term="guide" /><category term="mac" /><category term="guide" /><summary type="html"><![CDATA[1. 系统基础设置]]></summary></entry><entry><title type="html">Hello World!</title><link href="https://blog.dahuangggg.dev/2025/04/19/hello-world" rel="alternate" type="text/html" title="Hello World!" /><published>2025-04-19T00:00:00+00:00</published><updated>2025-04-19T00:00:00+00:00</updated><id>https://blog.dahuangggg.dev/2025/04/19/hello-world</id><content type="html" xml:base="https://blog.dahuangggg.dev/2025/04/19/hello-world"><![CDATA[<h1 id="comprehensive-markdown-syntax-test">Comprehensive Markdown Syntax Test</h1>

<p>This article demonstrates nearly all Markdown syntax elements to test how your theme renders them.</p>

<h2 id="1-headings">1. Headings</h2>

<p>Markdown supports six levels of headings:</p>

<h1 id="heading-level-1">Heading Level 1</h1>
<h2 id="heading-level-2">Heading Level 2</h2>
<h3 id="heading-level-3">Heading Level 3</h3>
<h4 id="heading-level-4">Heading Level 4</h4>
<h5 id="heading-level-5">Heading Level 5</h5>
<h6 id="heading-level-6">Heading Level 6</h6>

<h2 id="2-paragraphs-and-line-breaks">2. Paragraphs and Line Breaks</h2>

<p>This is the first paragraph.</p>

<p>This is the second paragraph.</p>

<p>This line ends with a forced line break<br />
This is the next line.</p>

<h2 id="3-emphasis-and-highlighting">3. Emphasis and Highlighting</h2>

<p><em>This text is italicized</em>
<em>This text is also italicized</em></p>

<p><strong>This text is bold</strong>
<strong>This text is also bold</strong></p>

<p><strong><em>This text is bold and italic</em></strong>
<strong><em>This is also bold and italic</em></strong></p>

<p><del>This text has a strikethrough</del></p>

<p><code class="language-plaintext highlighter-rouge">This is inline code</code></p>

<h2 id="4-blockquotes">4. Blockquotes</h2>

<blockquote>
  <p>This is a blockquote</p>

  <p>This is the second paragraph in the blockquote</p>

  <blockquote>
    <p>This is a nested blockquote</p>
  </blockquote>
</blockquote>

<h2 id="5-lists">5. Lists</h2>

<h3 id="unordered-lists">Unordered Lists</h3>

<ul>
  <li>Item 1</li>
  <li>Item 2
    <ul>
      <li>Subitem 2.1</li>
      <li>Subitem 2.2</li>
    </ul>
  </li>
  <li>
    <p>Item 3</p>
  </li>
  <li>Another unordered list symbol</li>
  <li>Item 2
    <ul>
      <li>Subitem</li>
    </ul>
  </li>
  <li>
    <p>Item 3</p>
  </li>
  <li>A third unordered list symbol</li>
  <li>Item 2</li>
  <li>Item 3</li>
</ul>

<h3 id="ordered-lists">Ordered Lists</h3>

<ol>
  <li>First item</li>
  <li>Second item
    <ol>
      <li>Subitem 2.1</li>
      <li>Subitem 2.2</li>
    </ol>
  </li>
  <li>Third item</li>
</ol>

<h3 id="task-lists">Task Lists</h3>

<ul class="task-list">
  <li class="task-list-item"><input type="checkbox" class="task-list-item-checkbox" disabled="disabled" checked="checked" />Completed task</li>
  <li class="task-list-item"><input type="checkbox" class="task-list-item-checkbox" disabled="disabled" />Incomplete task</li>
  <li class="task-list-item"><input type="checkbox" class="task-list-item-checkbox" disabled="disabled" checked="checked" />Another completed task</li>
</ul>

<h2 id="6-links">6. Links</h2>

<p><a href="https://www.example.com">Inline link</a></p>

<p><a href="https://www.example.com" title="Link title">Link with title</a></p>

<p><a href="https://www.mozilla.org">Reference-style link</a></p>

<p><a href="../blob/master/LICENSE">Relative reference to a repository file</a></p>

<p><a href="https://github.com">Numbered reference-style link</a></p>

<p>URLs and URLs in angle brackets will automatically get turned into links:
https://www.example.com or <a href="https://www.example.com">https://www.example.com</a></p>

<h2 id="7-images">7. Images</h2>

<p><img src="https://markdown-here.com/img/icon256.png" alt="Markdown Logo" /></p>

<p><img src="https://markdown-here.com/img/icon256.png" alt="Image with title" title="Markdown Logo" /></p>

<h2 id="8-tables">8. Tables</h2>

<table>
  <thead>
    <tr>
      <th>Header 1</th>
      <th>Header 2</th>
      <th>Header 3</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Cell 1</td>
      <td>Cell 2</td>
      <td>Cell 3</td>
    </tr>
    <tr>
      <td>Cell 4</td>
      <td>Cell 5</td>
      <td>Cell 6</td>
    </tr>
  </tbody>
</table>

<h3 id="alignment">Alignment</h3>

<table>
  <thead>
    <tr>
      <th style="text-align: left">Left-aligned</th>
      <th style="text-align: center">Center-aligned</th>
      <th style="text-align: right">Right-aligned</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td style="text-align: left">Text</td>
      <td style="text-align: center">Text</td>
      <td style="text-align: right">Text</td>
    </tr>
    <tr>
      <td style="text-align: left">Longer text</td>
      <td style="text-align: center">Longer text</td>
      <td style="text-align: right">Longer text</td>
    </tr>
  </tbody>
</table>

<h2 id="9-code-blocks">9. Code Blocks</h2>

<p>Inline code: <code class="language-plaintext highlighter-rouge">var example = "hello";</code></p>

<div class="language-javascript highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c1">// JavaScript code block with syntax highlighting</span>
<span class="kd">function</span> <span class="nx">hello</span><span class="p">()</span> <span class="p">{</span>
  <span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="dl">"</span><span class="s2">Hello, world!</span><span class="dl">"</span><span class="p">);</span>
<span class="p">}</span>
<span class="err">#</span> <span class="nx">Python</span> <span class="nx">code</span> <span class="nx">block</span>
<span class="nx">def</span> <span class="nx">hello</span><span class="p">():</span>
    <span class="nx">print</span><span class="p">(</span><span class="dl">"</span><span class="s2">Hello, world!</span><span class="dl">"</span><span class="p">)</span>
<span class="cm">/* CSS code block */</span>
<span class="nx">body</span> <span class="p">{</span>
  <span class="nx">background</span><span class="o">-</span><span class="nx">color</span><span class="p">:</span> <span class="err">#</span><span class="nx">f0f0f0</span><span class="p">;</span>
  <span class="nx">font</span><span class="o">-</span><span class="nx">family</span><span class="p">:</span> <span class="nx">Arial</span><span class="p">,</span> <span class="nx">sans</span><span class="o">-</span><span class="nx">serif</span><span class="p">;</span>
<span class="p">}</span>
</code></pre></div></div>

<p>Code block with no specified language:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>This is a code block with no specified language
It can be used for plain text
</code></pre></div></div>

<h2 id="10-horizontal-rules">10. Horizontal Rules</h2>

<p>Three ways to create horizontal rules:</p>

<hr />

<hr />

<hr />

<h2 id="11-escaped-characters">11. Escaped Characters</h2>

<p>* Asterisks don’t make italic text *
 ` Backticks don’t make code `
 # Hash doesn’t make a heading
 [Brackets don’t make links]</p>

<h2 id="12-html-tags">12. HTML Tags</h2>

<div style="color: blue;">
  <p>This is blue text using HTML tags. &lt;/div&gt;</p>

  <h2 id="footnotes">13. Footnotes</h2>

  <p>Here’s a footnote reference<sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote" rel="footnote">1</a></sup>.</p>

  <h2 id="definition-lists">14. Definition Lists</h2>

  <p>Term 1 : Definition 1</p>

  <p>Term 2 : Definition 2a : Definition 2b</p>

  <h2 id="math-expressions-if-supported-by-theme">15. Math Expressions (if supported by theme)</h2>

  <p>Inline math: $E = mc^2$</p>

  <p>Block math:</p>

\[\frac{n!}{k!(n-k)!} = \binom{n}{k}\]

  <h2 id="emojis-if-supported-by-theme">16. Emojis (if supported by theme)</h2>

  <p>:smile: :heart: :thumbsup:</p>

  <h2 id="diagrams-if-supported-by-theme">17. Diagrams (if supported by theme)</h2>

  <pre><code class="language-mermaid">graph TD;
    A--&gt;B;
    A--&gt;C;
    B--&gt;D;
    C--&gt;D;
</code></pre>

  <h2 id="table-of-contents-if-supported-by-theme">18. Table of Contents (if supported by theme)</h2>

  <p>[TOC]</p>

  <h2 id="theme-specific-callouts">19. Theme-specific Callouts</h2>

  <blockquote>
    <p>[!NOTE] This is a note callout (GitHub-style)</p>
  </blockquote>

  <blockquote>
    <p>[!WARNING] This is a warning callout (GitHub-style)</p>
  </blockquote>

  <blockquote>
    <p>[!TIP] This is a tip callout (GitHub-style)</p>
  </blockquote>

  <h2 id="keyboard-keys">20. Keyboard Keys</h2>

  <p><kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>Delete</kbd></p>

</div>
<div class="footnotes" role="doc-endnotes">
  <ol>
    <li id="fn:1" role="doc-endnote">
      <p>This is the footnote content. <a href="#fnref:1" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
    </li>
  </ol>
</div>]]></content><author><name></name></author><category term="test" /><category term="markdown" /><category term="test" /><summary type="html"><![CDATA[Comprehensive Markdown Syntax Test]]></summary></entry><entry><title type="html">Key Information Extraction System</title><link href="https://blog.dahuangggg.dev/2025/04/17/KeyInfoExtraction" rel="alternate" type="text/html" title="Key Information Extraction System" /><published>2025-04-17T00:00:00+00:00</published><updated>2025-04-17T00:00:00+00:00</updated><id>https://blog.dahuangggg.dev/2025/04/17/KeyInfoExtraction</id><content type="html" xml:base="https://blog.dahuangggg.dev/2025/04/17/KeyInfoExtraction"><![CDATA[<p><a href="https://github.com/dahuangggg/KeyInfoExtraction">项目地址</a></p>]]></content><author><name></name></author><category term="projects" /><category term="fastapi" /><category term="vue" /><category term="python" /><summary type="html"><![CDATA[项目地址]]></summary></entry></feed>