<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[PHKDevBlog]]></title><description><![CDATA[Phi Hoang Khong (ktn3), IT grad from HEDSPI – HUST. Sharing dev tips, tutorials, and personal projects.]]></description><link>https://ktn3.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 14:46:32 GMT</lastBuildDate><atom:link href="https://ktn3.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Hướng dẫn cài Oh My Posh trên Windows – biến terminal thành siêu đẹp trong 5 phút 
🎨🔥]]></title><description><![CDATA[Nếu bạn thấy terminal mặc định của Windows hơi “nhạt nhòa”, hoặc nhìn code mà mất mood 😭→ Thì Oh My Posh chính là thứ cứu rỗi cuộc đời bạn.
Trong bài này, mình sẽ hướng dẫn bạn cài Oh My Posh cực nhanh, chọn theme đẹp và tùy chỉnh terminal cho chuyê...]]></description><link>https://ktn3.hashnode.dev/huong-dan-cai-oh-my-posh-tren-windows-bien-terminal-thanh-sieu-dep-trong-5-phut</link><guid isPermaLink="true">https://ktn3.hashnode.dev/huong-dan-cai-oh-my-posh-tren-windows-bien-terminal-thanh-sieu-dep-trong-5-phut</guid><category><![CDATA[terminal]]></category><category><![CDATA[oh-my-posh]]></category><category><![CDATA[Powershell]]></category><category><![CDATA[Windows]]></category><category><![CDATA[General Programming]]></category><dc:creator><![CDATA[Phi Hoang Khong]]></dc:creator><pubDate>Sat, 15 Nov 2025 08:33:46 GMT</pubDate><content:encoded><![CDATA[<p>Nếu bạn thấy terminal mặc định của Windows hơi “nhạt nhòa”, hoặc nhìn code mà mất mood 😭<br />→ Thì <em>Oh My Posh</em> chính là thứ cứu rỗi cuộc đời bạn.</p>
<p>Trong bài này, mình sẽ hướng dẫn bạn cài Oh My Posh cực nhanh, chọn theme đẹp và tùy chỉnh terminal cho chuyên nghiệp như ninja dev 😎💻.</p>
<hr />
<h2 id="heading-1-oh-my-posh-la-gi"><strong>1. Oh My Posh là gì?</strong></h2>
<p>Oh My Posh là một công cụ giúp <strong>tùy chỉnh terminal</strong> (PowerShell, Bash, Zsh…) với:</p>
<ul>
<li><p>Theme đẹp</p>
</li>
<li><p>Icon Git</p>
</li>
<li><p>Màu sắc hiện đại</p>
</li>
<li><p>Font Nerd Font</p>
</li>
<li><p>Hiển thị branch commit, status, time…</p>
</li>
</ul>
<p>Nói đơn giản:<br />👉 <em>Terminal xấu → buồn ngủ</em><br />👉 <em>Terminal đẹp → mood tăng 200%, productivity tăng 500%</em> 😆</p>
<hr />
<h2 id="heading-2-cai-dat-oh-my-posh-tren-windows"><strong>2. Cài đặt Oh My Posh trên Windows</strong></h2>
<h3 id="heading-buoc-1-cai-bang-winget"><strong>Bước 1 — Cài bằng winget</strong></h3>
<p>Mở PowerShell với quyền Admin và chạy:</p>
<pre><code class="lang-plaintext">winget install JanDeDobbeleer.OhMyPosh
</code></pre>
<p>Xong!</p>
<hr />
<h3 id="heading-buoc-2-cai-font-nerd-font-bat-buoc-de-hien-icon"><strong>Bước 2 — Cài font Nerd Font (bắt buộc để hiện icon)</strong></h3>
<p>Oh My Posh dùng icon đặc biệt nên phải cài Nerd Font.</p>
<p>Mình recommend 3 font đẹp nhất:</p>
<ul>
<li><p><strong>FiraCode Nerd Font</strong></p>
</li>
<li><p><strong>JetBrains Mono Nerd Font</strong></p>
</li>
<li><p><strong>Cascadia Code PL (Windows Terminal default)</strong></p>
</li>
</ul>
<p>Tải tại:<br />👉 <a target="_blank" href="https://www.nerdfonts.com/font-downloads">https://www.nerdfonts.com/font-downloads</a></p>
<p>Cài xong → mở Windows Terminal → Settings → chọn font vừa cài.</p>
<hr />
<h2 id="heading-3-xem-danh-sach-theme-oh-my-posh"><strong>3. Xem danh sách theme Oh My Posh</strong></h2>
<p>Chạy:</p>
<pre><code class="lang-plaintext">Get-PoshThemes
</code></pre>
<p>Nó sẽ mở 1 cửa sổ hiển thị toàn bộ theme + preview.</p>
<p>Chọn theme nào bạn thích → nhớ tên file theme.</p>
<hr />
<h2 id="heading-4-ap-dung-theme-cho-powershell"><strong>4. Áp dụng theme cho PowerShell</strong></h2>
<h3 id="heading-buoc-1-tao-profile-neu-chua-co"><strong>Bước 1 — Tạo profile nếu chưa có</strong></h3>
<pre><code class="lang-plaintext">if (!(Test-Path -Path $PROFILE)) {
    New-Item -ItemType File -Path $PROFILE -Force
}
</code></pre>
<h3 id="heading-buoc-2-mo-file-profile"><strong>Bước 2 — Mở file profile</strong></h3>
<pre><code class="lang-plaintext">notepad $PROFILE
</code></pre>
<h3 id="heading-buoc-3-them-lenh-init-oh-my-posh"><strong>Bước 3 — Thêm lệnh init Oh My Posh</strong></h3>
<p>Ví dụ dùng theme mặc định:</p>
<pre><code class="lang-plaintext">oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\jandedobbeleer.omp.json" | Invoke-Expression
</code></pre>
<p>Save lại → mở cửa sổ terminal mới → DONE 😎🎉</p>
<hr />
<h2 id="heading-5-tuy-chinh-theme-optional-nhung-rat-xin"><strong>5. Tùy chỉnh theme (optional nhưng rất xịn)</strong></h2>
<p>Bạn có thể sửa màu, icon, cấu trúc prompt…</p>
<h3 id="heading-copy-theme-ra-de-chinh"><strong>Copy theme ra để chỉnh:</strong></h3>
<pre><code class="lang-plaintext">Copy-Item "$env:POSH_THEMES_PATH\jandedobbeleer.omp.json" "$HOME\mytheme.omp.json"
</code></pre>
<h3 id="heading-tro-powershell-vao-theme-moi"><strong>Trỏ PowerShell vào theme mới:</strong></h3>
<pre><code class="lang-plaintext">oh-my-posh init pwsh --config "$HOME\mytheme.omp.json" | Invoke-Expression
</code></pre>
<h3 id="heading-mo-file-json-va-chinh"><strong>Mở file JSON và chỉnh:</strong></h3>
<pre><code class="lang-plaintext">notepad "$HOME\mytheme.omp.json"
</code></pre>
<p>Thay đổi thoải mái 😎</p>
<hr />
<h2 id="heading-6-ket-qua-cuoi-cung"><strong>6. Kết quả cuối cùng</strong></h2>
<p>Terminal IntelliJ IDEA:</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1763195048861/f3d2077f-f263-4f7b-bee5-5226da624091.png" alt class="image--center mx-auto" /></p>
<p>Terminal VS Code:</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1763195070211/7717fc6d-02b0-4e7d-8da2-757a767090ef.png" alt class="image--center mx-auto" /></p>
<p>Windows PowerShell:</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1763195092225/dbacc75a-e739-472f-bc54-79dc1f22ec06.png" alt class="image--center mx-auto" /></p>
<hr />
<h2 id="heading-7-ket-luan"><strong>7. Kết luận</strong></h2>
<p>Chúc mừng! Terminal của bạn giờ đã:</p>
<ul>
<li><p>Nhìn đẹp hơn 99% developer khác 🤣</p>
</li>
<li><p>Hiển thị Git cực rõ</p>
</li>
<li><p>Thể hiện đúng “dev vibe”</p>
</li>
<li><p>Giúp bạn có cảm hứng học &amp; code hơn</p>
</li>
</ul>
]]></content:encoded></item></channel></rss>