<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Nerd Fonts on Andrew Wilson's Blog</title><link>https://andrewilson.co.uk/tags/nerd-fonts/</link><description>Recent content in Nerd Fonts on Andrew Wilson's Blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Thu, 30 Nov 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://andrewilson.co.uk/tags/nerd-fonts/index.xml" rel="self" type="application/rss+xml"/><item><title>Windows Terminal | Azure Customisation for PowerShell</title><link>https://andrewilson.co.uk/post/2023/11/windows-terminal-customisation-powershell/</link><pubDate>Thu, 30 Nov 2023 00:00:00 +0000</pubDate><guid>https://andrewilson.co.uk/post/2023/11/windows-terminal-customisation-powershell/</guid><description>If you haven&amp;rsquo;t already, placing a customisation on your command prompt for PowerShell is a great way to gain extra context in given activities. For example, if you would like to have a comprehensive overview of your Git status summary information, then posh-git is for you.
Be Careful: Adding customisations will bring latency to start-up
One customisation that I came across that I really like is the cloud-native-azure theme using Oh My Posh.</description><content:encoded><![CDATA[<p>If you haven&rsquo;t already, placing a customisation on your command prompt for PowerShell is a great way to gain extra context in given activities. For example, if you would like to have a comprehensive overview of your Git status summary information, then <a href="https://github.com/dahlbyk/posh-git">posh-git</a> is for you.</p>
<p>
  <img src="/images/posts/2023/11/posh-git.png" alt="posh-git">

</p>
<blockquote>
<p><strong>Be Careful:</strong> Adding customisations will bring latency to start-up</p>
</blockquote>
<p>One customisation that I came across that I really like is the <a href="https://ohmyposh.dev/docs/themes#cloud-native-azure">cloud-native-azure</a> theme using <a href="https://ohmyposh.dev/">Oh My Posh</a>.
The theme gives context to the following:</p>
<ul>
<li>Path.</li>
<li>Git status summary with changing colours and glyphs depending on status.</li>
<li>Command execution status.</li>
<li>Terminal Type (pwsh, shell, etc.)</li>
<li>Battery Status.</li>
<li>Date and Time.</li>
<li>Kubernetes Context.</li>
<li>The part I really like | <strong>Azure Subscription Context</strong>.</li>
</ul>
<p>
  <img src="/images/posts/2023/11/cloud-native-azure.png" alt="cloud-native-azure">

</p>
<p>For me, this theme really ticks the box, having both context of git status information and the Azure context in which I may be working is a real productivity assist.</p>
<h2 id="oh-my-posh-theme-install">Oh My Posh Theme Install</h2>
<p>To install and enable the theme for your command prompt for PowerShell, you will need to do the following:</p>
<ol>
<li>Install a font.
<ul>
<li>Often these customisations will make use of glyphs (graphic symbols) to assist in conveying information quickly.</li>
<li>I made use of <a href="https://www.nerdfonts.com/font-downloads">Nerd Font - 0xProto Nerd Font</a></li>
<li>Simply:
<ul>
<li>Install the font.</li>
<li>Unzip the download.</li>
<li>Right Click and Install the .ttf files.</li>
</ul>
</li>
</ul>
</li>
<li>Enable the font in Windows Terminal.
<ul>
<li>Open the Windows Terminal.</li>
<li>Press <code>ctrl+,</code> to get to Windows Terminal Settings.</li>
<li>Under Profiles, select Windows PowerShell.</li>
<li>Under Additional Settings, select Appearance.</li>
<li>Select the drop-down for Font Face and select your downloaded font. For me this is 0xProto Nerd Font.</li>
</ul>
</li>
<li>Install <a href="https://ohmyposh.dev/docs/installation/windows">Oh My Posh</a>.</li>
<li>Apply your theme of choice, or in this case <a href="https://ohmyposh.dev/docs/themes#cloud-native-azure">cloud-native-azure</a>.
<ul>
<li>Simply:
<ul>
<li>Load your PowerShell profile through your editor of choice:
<ul>
<li><code>&gt; code $PROFILE</code> / <code>&gt; notepad $PROFILE</code></li>
<li>If you receive a path error, a profile may not have been setup for you yet. To sort this, use the following PowerShell command:
<ul>
<li><code>&gt; new-item -type file -path $profile -force</code></li>
<li>Then run the previous command to open the profile for editing.</li>
</ul>
</li>
</ul>
</li>
<li>Add the following initiation line for oh-my-posh for your given choice of theme
<ul>
<li><code>oh-my-posh init pwsh --config &quot;$env:POSH_THEMES_PATH\cloud-native-azure.omp.json&quot; | Invoke-Expression</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ol>
<p>Now the next time you load up your PowerShell terminal, you can enjoy the awesome customisation and hopefully get some productivity benefits too.</p>
]]></content:encoded></item></channel></rss>