Skip to content

Commit 624727f

Browse files
committed
blog styling
Signed-off-by: marblom007 <158522975+marblom007@users.noreply.github.com>
1 parent 3614675 commit 624727f

File tree

2 files changed

+27
-20
lines changed

2 files changed

+27
-20
lines changed

src/collections/blog/2026/03-09-why-claude-code-cant-find-your-tools/index.mdx

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ zsh -i -c 'which node'
166166
<p>Run <code>zsh -c 'which gh'</code> (no <code>-i</code> flag). If this fails but <code>which gh</code> in your normal terminal works, your PATH is only set in <code>{"~/.zshrc"}</code>. Move the relevant exports to <code>{"~/.zshenv"}</code> to fix it.</p>
167167
</Callout>
168168

169-
<h2>The Fix: Move PATH Exports to <code>{"~/.zshenv"}</code></h2>
169+
<h2>The Fix: Move PATH Exports to ~/.zshenv</h2>
170170

171171
<p>
172172
The solution is straightforward: any environment variable that must be visible to all processes — including non-interactive subshells — belongs in <code>{"~/.zshenv"}</code>, not <code>{"~/.zshrc"}</code>.
@@ -232,27 +232,27 @@ zsh -c 'which node'
232232

233233
<Callout type="tip" title="Guiding principle">
234234
<p>If it is an environment variable that a program needs to find another program, it belongs in <code>{"~/.zshenv"}</code>. If it is a user-facing customization for your interactive terminal experience, it belongs in <code>{"~/.zshrc"}</code>.</p>
235-
236-
<p><strong>Keep in <code>{"~/.zshenv"}</code>:</strong></p>
237-
<ul>
238-
<li><code>PATH</code> exports and modifications</li>
239-
<li><code>GOPATH</code>, <code>JAVA_HOME</code>, <code>PYTHONPATH</code>, <code>CARGO_HOME</code>, and similar tool-specific env vars</li>
240-
<li><code>NVM_DIR</code>, <code>PYENV_ROOT</code>, <code>RBENV_ROOT</code> and their <code>PATH</code> injections</li>
241-
<li><code>EDITOR</code>, <code>PAGER</code>, <code>LANG</code>, <code>LC_ALL</code></li>
242-
</ul>
243-
244-
<p><strong>Keep in <code>{"~/.zshrc"}</code>:</strong></p>
245-
<ul>
246-
<li>Shell aliases (<code>alias ll='ls -la'</code>)</li>
247-
<li>Prompt configuration (Starship, Powerlevel10k, oh-my-zsh)</li>
248-
<li>Tab completion setup</li>
249-
<li>Shell functions for interactive use</li>
250-
<li>History settings</li>
251-
<li><code>zsh</code> plugins and plugin managers</li>
252-
<li>Anything that prints output (welcome messages, <code>neofetch</code>, etc.)</li>
253-
</ul>
254235
</Callout>
255236

237+
<p><strong>Keep in <code>{"~/.zshenv"}</code>:</strong></p>
238+
<ul>
239+
<li><code>PATH</code> exports and modifications</li>
240+
<li><code>GOPATH</code>, <code>JAVA_HOME</code>, <code>PYTHONPATH</code>, <code>CARGO_HOME</code>, and similar tool-specific env vars</li>
241+
<li><code>NVM_DIR</code>, <code>PYENV_ROOT</code>, <code>RBENV_ROOT</code> and their <code>PATH</code> injections</li>
242+
<li><code>EDITOR</code>, <code>PAGER</code>, <code>LANG</code>, <code>LC_ALL</code></li>
243+
</ul>
244+
245+
<p><strong>Keep in <code>{"~/.zshrc"}</code>:</strong></p>
246+
<ul>
247+
<li>Shell aliases (<code>alias ll='ls -la'</code>)</li>
248+
<li>Prompt configuration (Starship, Powerlevel10k, oh-my-zsh)</li>
249+
<li>Tab completion setup</li>
250+
<li>Shell functions for interactive use</li>
251+
<li>History settings</li>
252+
<li><code>zsh</code> plugins and plugin managers</li>
253+
<li>Anything that prints output (welcome messages, <code>neofetch</code>, etc.)</li>
254+
</ul>
255+
256256
<h2>The Broader Pattern: Any Tool That Spawns Subshells</h2>
257257

258258
<p>

src/collections/blog/Blog.style.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ export const BlogWrapper = styled.div`
5656
margin-right: 0rem;
5757
}
5858
}
59+
h2,
60+
h3 {
61+
margin-bottom: 1rem;
62+
}
63+
h4 {
64+
margin-bottom: 0.5rem;
65+
}
5966
table {
6067
overflow-x: auto;
6168
display: block;

0 commit comments

Comments
 (0)