<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Terminal on 青蛙小白</title><link>https://blog.frognew.com/library/ide/terminal.html</link><description>Recent content in Terminal on 青蛙小白</description><generator>Hugo</generator><language>zh-CN</language><atom:link href="https://blog.frognew.com/library/ide/terminal/index.xml" rel="self" type="application/rss+xml"/><item><title>Terminal v1</title><link>https://blog.frognew.com/library/ide/terminal/terminal-v1.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://blog.frognew.com/library/ide/terminal/terminal-v1.html</guid><description>&lt;h1 id="terminal-v1">Terminal v1&lt;/h1>

&lt;div class="callout callout-warning">
 &lt;strong>Terminal v1已经废弃，已升级到 &lt;a href="https://blog.frognew.com/library/ide/terminal.html">Terminal v2&lt;/a>&lt;/strong>
&lt;/div>

&lt;p>基于分层架构打造高效美观的终端环境：Shell (zsh + oh-my-zsh) + Prompt (powerlevel10k) + Terminal Emulator (Alacritty) + Multiplexer (tmux)，效果图如下。&lt;/p>
&lt;p>&lt;figure class="post-figure">
 &lt;img src="https://blog.frognew.com/images/library/ide/terminal.png" alt="terminal.png" loading="lazy">
 &lt;figcaption>terminal.png&lt;/figcaption>
&lt;/figure>
&lt;/p>
&lt;h2 id="1-shell-层zsh--oh-my-zsh">1. Shell 层：zsh + oh-my-zsh&lt;/h2>
&lt;h3 id="11-安装-zsh-和-oh-my-zsh">1.1 安装 zsh 和 oh-my-zsh&lt;/h3>
&lt;h4 id="111-安装-zsh">1.1.1 安装 zsh&lt;/h4>
&lt;p>&lt;strong>macOS&lt;/strong>：&lt;/p>
&lt;ul>
&lt;li>macOS Catalina (10.15) 及更高版本已内置 zsh 并设为默认 shell，无需安装&lt;/li>
&lt;li>检查当前 shell：&lt;code>echo $SHELL&lt;/code>&lt;/li>
&lt;li>如需切换到 zsh：&lt;code>chsh -s $(which zsh)&lt;/code>&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Ubuntu/Linux&lt;/strong>：&lt;/p></description></item><item><title>tmux 安装与更新</title><link>https://blog.frognew.com/library/ide/terminal/tmux-installation.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://blog.frognew.com/library/ide/terminal/tmux-installation.html</guid><description>&lt;h1 id="ubuntu-上安装与更新-tmux">Ubuntu 上安装与更新 tmux&lt;/h1>
&lt;p>适用环境：Ubuntu 24.04（x86_64）。本文采用官方 release 源码编译，将 tmux 安装到用户目录 &lt;code>~/.local&lt;/code>，并保留 Ubuntu 自带的 &lt;code>/usr/bin/tmux&lt;/code> 作为回退版本。&lt;/p>
&lt;h2 id="当前安装状态">当前安装状态&lt;/h2>
&lt;p>以下是 2026-07-13 的环境快照：&lt;/p>


&lt;div class="code-block">
 &lt;div class="cb-header">
 &lt;div class="cb-dots">
 &lt;span class="cb-dot cb-red">&lt;/span>
 &lt;span class="cb-dot cb-yellow">&lt;/span>
 &lt;span class="cb-dot cb-green">&lt;/span>
 &lt;/div>
&lt;button class="copy-btn" aria-label="复制代码">
 &lt;svg class="copy-icon" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">&lt;rect x="9" y="9" width="13" height="13" rx="2"/>&lt;path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/>&lt;/svg>
 &lt;/button>
 &lt;/div>
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-text" data-lang="text">&lt;span class="line">&lt;span class="cl">用户安装路径：~/.local/bin/tmux
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">当前安装版本：tmux 3.7b
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">系统备用路径：/usr/bin/tmux
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">系统备用版本：tmux 3.4&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
&lt;/div>
&lt;p>因为 &lt;code>~/.local/bin&lt;/code> 位于 &lt;code>/usr/bin&lt;/code> 之前，直接执行 &lt;code>tmux&lt;/code> 时会使用用户安装的新版本。&lt;/p></description></item></channel></rss>