<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Statusline - 标签 - William</title>
    <link>https://williamlfang.github.io/tags/statusline/</link>
    <description>Statusline - 标签 | William</description>
    <generator>Hugo -- gohugo.io</generator><language>zh-CN</language><lastBuildDate>Thu, 05 Nov 2026 18:38:39 &#43;0800</lastBuildDate><atom:link href="https://williamlfang.github.io/tags/statusline/" rel="self" type="application/rss+xml" /><item>
  <title>Lining up the Claude Code status line with my powerlevel10k prompt: padding -2 and a 5-second refresh</title>
  <link>https://williamlfang.github.io/2026-11-05-claude-code-statusline-p10k/</link>
  <pubDate>Thu, 05 Nov 2026 18:38:39 &#43;0800</pubDate>
  <author>william</author>
  <guid>https://williamlfang.github.io/2026-11-05-claude-code-statusline-p10k/</guid>
  <description><![CDATA[<div class="featured-image"><img loading="eager" src="https://williamlfang.github.io/2026-11-05-claude-code-statusline-p10k/featured-image.png" alt="Lining up the Claude Code status line with my powerlevel10k prompt: padding -2 and a 5-second refresh" title="Lining up the Claude Code status line with my powerlevel10k prompt: padding -2 and a 5-second refresh" referrerpolicy="no-referrer"/></div><p>I keep Claude Code in a tmux pane above a zsh pane, so its status line sits just
above my zsh prompt, and the two almost matched. Both used the same <a href="/2024-09-08-powerlevel10k-%E9%85%8D%E7%BD%AE/">powerlevel10k</a>
colours and separators, but Claude&rsquo;s line started 2 columns further in and
stopped wherever its text ran out. The zsh line ran the full width of the
terminal, so the pair looked misaligned.</p>
<p>The fix was a dotted gap computed from <code>$COLUMNS</code> and <strong><code>&quot;padding&quot;: -2</code></strong>, a value
the docs don&rsquo;t mention. Now both prompts start at column 0 and close on the same
column, 134 of 135.</p>]]></description>
</item>
</channel>
</rss>
