<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Linux on Edward&#39;s Blog</title>
    <link>https://example.org/categories/linux/</link>
    <description>Recent content from Edward&#39;s Blog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    
    <managingEditor>xxx@example.com (D-Sketon)</managingEditor>
    <webMaster>xxx@example.com (D-Sketon)</webMaster>
    
    <copyright>本博客所有文章除特别声明外，均采用 BY-NC-SA 许可协议。转载请注明出处！</copyright>
    
    <lastBuildDate>Tue, 01 Sep 2026 11:23:29 +0800</lastBuildDate>
    
    
    <atom:link href="https://example.org/categories/linux/index.xml" rel="self" type="application/rss&#43;xml" />
    

    
    

    <item>
      <title>Zsh &#43; Oh My Zsh 完整配置指南：让你的终端焕然一新</title>
      <link>https://example.org/post/zsh-oh-my-zsh-%E5%AE%8C%E6%95%B4%E9%85%8D%E7%BD%AE%E6%8C%87%E5%8D%97%E8%AE%A9%E4%BD%A0%E7%9A%84%E7%BB%88%E7%AB%AF%E7%84%95%E7%84%B6%E4%B8%80%E6%96%B0/</link>
      <pubDate>Tue, 01 Sep 2026 11:23:29 &#43;0800</pubDate>
      <author>xxx@example.com (D-Sketon)</author>
      <guid>https://example.org/post/zsh-oh-my-zsh-%E5%AE%8C%E6%95%B4%E9%85%8D%E7%BD%AE%E6%8C%87%E5%8D%97%E8%AE%A9%E4%BD%A0%E7%9A%84%E7%BB%88%E7%AB%AF%E7%84%95%E7%84%B6%E4%B8%80%E6%96%B0/</guid>
      <description>
        <![CDATA[<h1>Zsh + Oh My Zsh 完整配置指南：让你的终端焕然一新</h1><p>作者：D-Sketon（xxx@example.com）</p>
        
          <blockquote>
<p>如果你还在使用默认的 Bash 终端，那可能错过了许多提升生产力的神器。本文将手把手带你安装、配置 Zsh 及 Oh My Zsh，并集成美观的主题和实用的插件，让你的终端焕然一新。</p>
</blockquote>
<hr>
<h2 id="前言">
<a class="header-anchor" href="#%e5%89%8d%e8%a8%80"></a>
前言
</h2><p>Zsh（Z Shell）是 Bash 的现代替代品，拥有更丰富的自动补全、拼写纠正、主题定制等功能。而 <strong>Oh My Zsh</strong> 则是社区最受欢迎的 Zsh 配置管理框架，提供了海量插件和主题，让配置变得极其简单。本文将面向 Linux 用户（Ubuntu/Debian/Fedora/Arch）提供完整步骤。</p>
<hr>
<h2 id="安装-zsh">
<a class="header-anchor" href="#%e5%ae%89%e8%a3%85-zsh"></a>
安装 Zsh
</h2><h3 id="系统要求">
<a class="header-anchor" href="#%e7%b3%bb%e7%bb%9f%e8%a6%81%e6%b1%82"></a>
系统要求
</h3><ul>
<li>Linux 操作系统（本文以 Ubuntu 20.04/22.04 为例，其他发行版类似）</li>
<li>拥有 <code>sudo</code> 权限</li>
<li>稳定的网络连接（用于下载插件和字体）</li>
</ul>
<h3 id="安装命令">
<a class="header-anchor" href="#%e5%ae%89%e8%a3%85%e5%91%bd%e4%bb%a4"></a>
安装命令
</h3><h4 id="ubuntu--debian">
<a class="header-anchor" href="#ubuntu--debian"></a>
Ubuntu / Debian
</h4><div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>sudo apt update <span style="color:#f92672">&amp;&amp;</span> sudo apt upgrade -y
</span></span><span style="display:flex;"><span>sudo apt install zsh git curl wget fontconfig -y
</span></span></code></pre></div><h4 id="fedora">
<a class="header-anchor" href="#fedora"></a>
Fedora
</h4><div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>sudo dnf update -y
</span></span><span style="display:flex;"><span>sudo dnf install zsh git curl wget fontconfig -y
</span></span></code></pre></div><h4 id="arch-linux">
<a class="header-anchor" href="#arch-linux"></a>
Arch Linux
</h4><div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>sudo pacman -S zsh git curl wget
</span></span></code></pre></div><h3 id="验证并切换默认-shell">
<a class="header-anchor" href="#%e9%aa%8c%e8%af%81%e5%b9%b6%e5%88%87%e6%8d%a2%e9%bb%98%e8%ae%a4-shell"></a>
验证并切换默认 Shell
</h3><p>查看 Zsh 版本：</p>
        
        <hr><p>本文2026-09-01首发于<a href='https://example.org/'>Edward's Blog</a>，最后修改于2026-09-01</p>]]>
      </description>
      
        <category>Linux</category>
      
    </item>
    
    

    <item>
      <title>如何解决Linux和Window双系统时间不同步</title>
      <link>https://example.org/post/%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3linux%E5%92%8Cwindow%E5%8F%8C%E7%B3%BB%E7%BB%9F%E6%97%B6%E9%97%B4%E4%B8%8D%E5%90%8C%E6%AD%A5/</link>
      <pubDate>Sat, 17 Jan 2026 13:43:03 &#43;0800</pubDate>
      <author>xxx@example.com (D-Sketon)</author>
      <guid>https://example.org/post/%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3linux%E5%92%8Cwindow%E5%8F%8C%E7%B3%BB%E7%BB%9F%E6%97%B6%E9%97%B4%E4%B8%8D%E5%90%8C%E6%AD%A5/</guid>
      <description>
        <![CDATA[<h1>如何解决Linux和Window双系统时间不同步</h1><p>作者：D-Sketon（xxx@example.com）</p>
        
          <p>当你在电脑上同时装上 Windows 和 Linux（Ubuntu）双系统时，可能会出现两个系统时间不同步问题。因此，本文将指导如何解决这个问题。</p>
<h3 id="原因">
<a class="header-anchor" href="#%e5%8e%9f%e5%9b%a0"></a>
原因
</h3><p>首先我们要了解一个概念 BIOS 时间，它由主板上的实时时钟（RTC）维护。</p>
<p>时间不同步的原因是 Windows 系统与 Linux 系统对 BIOS 时间的理解不同。</p>
<p>在 Windows 上，BIOS 时间就是当地时间，因此 Windows 会直接显示该时间；而 Linux 则将 BIOS 时间当成 UTC 时间（格林尼治标准时间），因此 Linux 会将在 BIOS 时间基础上加上你本地的时差。</p>
<p>当你启动一个系统时，该系统会对 BIOS 时间进行修改，从而导致另一个系统的时间出现错误。</p>
<h3 id="解决方法">
<a class="header-anchor" href="#%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95"></a>
解决方法
</h3><h4 id="修改-linux-配置适用于以-windows-为主系统">
<a class="header-anchor" href="#%e4%bf%ae%e6%94%b9-linux-%e9%85%8d%e7%bd%ae%e9%80%82%e7%94%a8%e4%ba%8e%e4%bb%a5-windows-%e4%b8%ba%e4%b8%bb%e7%b3%bb%e7%bb%9f"></a>
修改 Linux 配置（适用于以 Windows 为主系统）
</h4><p>这种方式是让 Linux 系统来适配 Windows 的本地时间规则。</p>
<ul>
<li>在 Linux 中打开终端，执行以下命令
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>timedatectl set-local-rtc <span style="color:#ae81ff">1</span> --adjust-system-clock
</span></span></code></pre></div></li>
<li>验证配置是否生效
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>timedatectl
</span></span></code></pre></div>输出中如果出现 RTC in local TZ: yes，就说明配置成功。</li>
</ul>
<h3 id="修改-windows-配置适用于以-linux-为主系统">
<a class="header-anchor" href="#%e4%bf%ae%e6%94%b9-windows-%e9%85%8d%e7%bd%ae%e9%80%82%e7%94%a8%e4%ba%8e%e4%bb%a5-linux-%e4%b8%ba%e4%b8%bb%e7%b3%bb%e7%bb%9f"></a>
修改 Windows 配置（适用于以 Linux 为主系统）
</h3><p>这种方式让 Windows 适配 Linux 的 UTC 规则，需要修改 Windows 注册表。</p>
        
        <hr><p>本文2026-01-17首发于<a href='https://example.org/'>Edward's Blog</a>，最后修改于2026-01-17</p>]]>
      </description>
      
        <category>Linux</category>
      
    </item>
    
  </channel>
</rss>
