Interface
终端配置
终端外观和行为怎么调,叫它更顺手。
页面信息
这页不是官方原文,而是顺着官方文档结构做的中文解释版。命令、参数、配置名这些硬东西尽量保留,解释部分则尽量讲成人能照着做的话。
如果你碰到特别敏感的配置、权限或企业环境差异,最好顺手点上面的“查看原始文档”再核一遍。
这一页先讲明白
这页讲终端环境怎么调,才能让 Claude Code 用起来顺手。
很多体验问题,不是 Claude 坏,是终端底子没打好。
这像修工作台。台子不稳,师傅手艺再好也难发挥。
终端字体、颜色、复制粘贴、输入回显这些细节,都会影响日常手感。
这页适合刚开始长期用终端版的人先补一遍。
先把最影响体验的地方调顺,比如显示、输入、编码和复制粘贴。
如果你总觉得命令行用着别扭,多半这页有你要的答案。
环境调好后,再去谈更高级的用法,事半功倍。
原页关键片段:Play a sound with a Notification hook
想把这条规矩固定住,就把下面这块老老实实写进去。
{
"hooks": {
"Notification": [
{
"hooks": [{ "type": "command", "command": "afplay /System/Library/Sounds/Glass.aiff" }]
}
]
}
} 原页关键片段:Configure tmux
先别急着往下翻,下面这条命令跑完,心里才有底。
set -g allow-passthrough on
set -s extended-keys on
set -as terminal-features 'xterm*:extkeys' 原页关键片段:Create a custom theme 1
这一段说完,最后还得写到配置里才算真的生效。
{
"name": "Dracula",
"base": "dark",
"overrides": {
"claude": "#bd93f9",
"error": "#ff5555",
"success": "#50fa7b"
}
} 原页关键片段:Create a custom theme 2
这一段说完,最后还得写到配置里才算真的生效。
{
"name": "Midnight",
"base": "dark",
"overrides": {
"claude": "#a78bfa",
"planMode": "#38bdf8",
"diffAdded": "#14532d",
"diffRemoved": "#7f1d1d",
"userMessageBackground": "#1e1b4b"
}
} 原页关键片段:Switch to fullscreen rendering
下面这块是这一段最值钱的原文样板,先对着看一眼。
CLAUDE_CODE_NO_FLICKER=1 claude Documentation Index
这里不是让你背"Documentation Index"这个词,而是让你看它真干活时怎么使。
看这段时要特别盯工具和权限边界,别为了省事一把全开。
Enter multiline prompts
这里不是让你背"Enter multiline prompts"这个词,而是让你看它真干活时怎么使。
看这段时要特别盯工具和权限边界,别为了省事一把全开。
Enable Option key shortcuts on macOS
这里讲怎么把某个开关拧对。重点不是概念,而是你该在哪儿改、改完怎么确认生效。
看这段时要特别盯工具和权限边界,别为了省事一把全开。
Get a terminal bell or notification
这一段更像在讲判断条件,什么时候该上,什么时候先别急。把触发条件看清,比背标题更重要。
这里还牵扯作用域,意思就是这条规则到底管当前项目、你个人,还是只管这一趟会话。
Play a sound with a Notification hook
这一块主要是在说"Play a sound with a Notification hook"真到手上该怎么用,哪里最容易踩坑。
如果你打算把外接能力往里挂,这里提到的 hooks、MCP、skills、memory 都要分清各自负责哪一摊。
Play a sound with a Notification hook
想把这条规矩固定住,就把下面这块老老实实写进去。
{
"hooks": {
"Notification": [
{
"hooks": [{ "type": "command", "command": "afplay /System/Library/Sounds/Glass.aiff" }]
}
]
}
} Configure tmux
这一段主要是在拧开关,地方和顺序都别搞错。
看这段时要特别盯工具和权限边界,别为了省事一把全开。
Configure tmux
先别急着往下翻,下面这条命令跑完,心里才有底。
set -g allow-passthrough on
set -s extended-keys on
set -as terminal-features 'xterm*:extkeys' Match the color theme
这一段是在说怎么用 the /theme command, or the theme picker in /config, 去做 choose a Claude Code theme that matches your terminal. Selecting the auto option detects your terminal’s light or dark background, so the theme follows OS appearance changes whenever your terminal does. Claude Code does not control the terminal’s own color scheme, which is set by the terminal application.。看这种内容,光知道名字没用,还是得落到手上。
Create a custom theme
看到这里,就把"Create a custom theme"当成一件真要上手的活来看。
这里还牵扯作用域,意思就是这条规则到底管当前项目、你个人,还是只管这一趟会话。
Create a custom theme 1
这一段说完,最后还得写到配置里才算真的生效。
{
"name": "Dracula",
"base": "dark",
"overrides": {
"claude": "#bd93f9",
"error": "#ff5555",
"success": "#50fa7b"
}
} Create a custom theme 2
这一段说完,最后还得写到配置里才算真的生效。
{
"name": "Midnight",
"base": "dark",
"overrides": {
"claude": "#a78bfa",
"planMode": "#38bdf8",
"diffAdded": "#14532d",
"diffRemoved": "#7f1d1d",
"userMessageBackground": "#1e1b4b"
}
} Switch to fullscreen rendering
这一段更像在讲判断条件,什么时候该上,什么时候先别急。把触发条件看清,比背标题更重要。
这里还牵扯作用域,意思就是这条规则到底管当前项目、你个人,还是只管这一趟会话。
Switch to fullscreen rendering
下面这块是这一段最值钱的原文样板,先对着看一眼。
CLAUDE_CODE_NO_FLICKER=1 claude Paste large content
这一段更像在讲判断条件,什么时候该上,什么时候先别急。把触发条件看清,比背标题更重要。
看这段时要特别盯工具和权限边界,别为了省事一把全开。
Edit prompts with Vim keybindings
这里不是让你背"Edit prompts with Vim keybindings"这个词,而是让你看它真干活时怎么使。
看这段时要特别盯工具和权限边界,别为了省事一把全开。
Related resources
这一段主要是在把"Related resources"讲实,不是只摆个标题给你看。
如果你打算把外接能力往里挂,这里提到的 hooks、MCP、skills、memory 都要分清各自负责哪一摊。
照着做一遍
如果你不想来回翻,就先照这几步顺着做。
每做完一步就看一下结果,再决定要不要继续往下。
第 1 步:Play a sound with a Notification hook
想把这条规矩固定住,就把下面这块老老实实写进去。
{
"hooks": {
"Notification": [
{
"hooks": [{ "type": "command", "command": "afplay /System/Library/Sounds/Glass.aiff" }]
}
]
}
} 第 2 步:Configure tmux
先别急着往下翻,下面这条命令跑完,心里才有底。
set -g allow-passthrough on
set -s extended-keys on
set -as terminal-features 'xterm*:extkeys' 第 3 步:Create a custom theme 1
这一段说完,最后还得写到配置里才算真的生效。
{
"name": "Dracula",
"base": "dark",
"overrides": {
"claude": "#bd93f9",
"error": "#ff5555",
"success": "#50fa7b"
}
} 第 4 步:Create a custom theme 2
这一段说完,最后还得写到配置里才算真的生效。
{
"name": "Midnight",
"base": "dark",
"overrides": {
"claude": "#a78bfa",
"planMode": "#38bdf8",
"diffAdded": "#14532d",
"diffRemoved": "#7f1d1d",
"userMessageBackground": "#1e1b4b"
}
} 一眼看懂这一页
先把这页到底在讲什么看明白,再去碰具体命令和配置,最不容易绕晕。
Terminal configuration
|
v
这是 Interface 里的一摊要紧活
|
v
先弄懂,再下手 文末提醒
这站会按官方 docs 的导航和内容变化继续重生成,原站加页、删页、改页时,这里会跟着更新。
人话解释会尽量顺着原页往下讲,但命令、参数名、配置名这些硬东西还是保留原样,免得你抄过去跑不起来。