<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Shell on YROOT</title><link>https://yroot.io/en/tags/shell/</link><description>Recent content in Shell on YROOT</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 15 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://yroot.io/en/tags/shell/index.xml" rel="self" type="application/rss+xml"/><item><title>My Claude Code Status Line</title><link>https://yroot.io/en/posts/claude-code-statusline/</link><pubDate>Wed, 15 Apr 2026 00:00:00 +0000</pubDate><guid>https://yroot.io/en/posts/claude-code-statusline/</guid><description>&lt;p&gt;Context usage, cost, git status – things you want to keep an eye on while working with Claude Code, without having to ask for them. The status line shows that persistently at the bottom of the terminal. After each response, Claude Code runs a shell script that receives session data as JSON on stdin and outputs whatever you want to see.&lt;/p&gt;
&lt;p&gt;Here&amp;rsquo;s what mine looks like:&lt;/p&gt;
&lt;pre style="padding:1em;border-radius:6px;line-height:1.8;overflow-x:auto;font-size:.9em"&gt;&lt;code&gt;&lt;span style="color:#89dceb;font-weight:bold"&gt;[Claude Sonnet 4.6]&lt;/span&gt; &lt;span style="opacity:.4"&gt;❯&lt;/span&gt; my-project &lt;span style="opacity:.4"&gt;|&lt;/span&gt; ⑂ &lt;span style="color:#a6e3a1"&gt;main&lt;/span&gt; &lt;span style="color:#f9e2af"&gt;~2&lt;/span&gt; &lt;span style="opacity:.4"&gt;|&lt;/span&gt; &lt;span style="color:#a6e3a1"&gt;+41&lt;/span&gt; &lt;span style="color:#f38ba8"&gt;-7&lt;/span&gt;
&lt;span style="color:#a6e3a1"&gt;▓▓▓░░░░░░░&lt;/span&gt; 31% ctx &lt;span style="opacity:.4"&gt;|&lt;/span&gt; &lt;span style="color:#f9e2af"&gt;$0.042&lt;/span&gt; &lt;span style="opacity:.4"&gt;|&lt;/span&gt; ⧗ 3m 12s &lt;span style="opacity:.4"&gt;|&lt;/span&gt; 5h: 37% 7d: 23% &lt;span style="opacity:.4"&gt;|&lt;/span&gt; in:12k out:&lt;span style="color:#89dceb"&gt;3.2k&lt;/span&gt; &lt;span style="opacity:.4"&gt;| cache&lt;/span&gt; w:8k r:&lt;span style="color:#a6e3a1"&gt;21k&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The script lives at &lt;code&gt;~/.claude/statusline.sh&lt;/code&gt;, wired up in &lt;code&gt;~/.claude/settings.json&lt;/code&gt;:&lt;/p&gt;</description></item></channel></rss>