<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>PowerShell on bradleycarey.com</title>
    <link>https://bradleycarey.com/tags/powershell/</link>
    <description>Recent content in PowerShell on bradleycarey.com</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Fri, 09 Feb 2024 13:30:27 -0500</lastBuildDate>
    <atom:link href="https://bradleycarey.com/tags/powershell/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Serving an Angular CLI App over HTTPS Made Easy</title>
      <link>https://bradleycarey.com/posts/get-angular-cli-to-ng-serve-over-https/</link>
      <pubDate>Thu, 24 Aug 2023 10:49:47 -0400</pubDate>
      <guid>https://bradleycarey.com/posts/get-angular-cli-to-ng-serve-over-https/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve discovered a simpler method than those discussed in &lt;a href=&#34;https://stackoverflow.com/questions/39210467/get-angular-cli-to-ng-serve-over-https&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;this Stack Overflow post&lt;/a&gt; for serving an Angular CLI app over HTTPS using &lt;a href=&#34;https://www.npmjs.com/package/office-addin-dev-certs&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;office-addin-dev-certs&lt;/a&gt;. Don&amp;rsquo;t be fooled by the name, these certs work for any local development!&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Generate the certificates by running the following command and click &amp;ldquo;Yes&amp;rdquo; to trust them when prompted:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;npx office-addin-dev-certs install --days 365&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;You&amp;rsquo;ll find the generated certificates (&lt;code&gt;localhost.crt&lt;/code&gt; and &lt;code&gt;localhost.key&lt;/code&gt;) in your home folder &lt;code&gt;~\.office-addin-dev-certs&lt;/code&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Copy them to your angular project: &lt;code&gt;cp ~\.office-addin-dev-certs\localhost.* .&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Don&amp;rsquo;t forget to add them to your &lt;code&gt;.gitignore&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Use these certificates with Angular by running:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Run &lt;code&gt;ng serve --ssl --ssl-key localhost.key --ssl-cert localhost.crt&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Alternatively, add them to your &lt;code&gt;angular.json&lt;/code&gt; so you can run &lt;code&gt;ng serve&lt;/code&gt; as usual:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Customizing my PowerShell CLI using Oh My Posh</title>
      <link>https://bradleycarey.com/posts/customizing-my-cli-using-oh-my-posh/</link>
      <pubDate>Sat, 19 Aug 2023 17:31:54 -0400</pubDate>
      <guid>https://bradleycarey.com/posts/customizing-my-cli-using-oh-my-posh/</guid>
      <description>&lt;p&gt;For years, I relied on &lt;a href=&#34;https://cmder.net/&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Cmder&lt;/a&gt; as my terminal emulator of choise. With the release of Microsoft&amp;rsquo;s modern terminal, it&amp;rsquo;s time to transition away from Cmder. In this article, I&amp;rsquo;ll outline my approach to customizing my CLI for improved productivity:&lt;/p&gt;&#xA;&lt;h2 id=&#34;prerequisites&#34;&gt;&#xA;  Prerequisites&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#prerequisites&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;I recommend installing as much as you can using Microsoft Store so that auto updates are enabled. You can also use package managers such as winget or choclatey.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Customizing my CLI using Oh My Posh (Old PS modules version)</title>
      <link>https://bradleycarey.com/posts/oh-my-posh/</link>
      <pubDate>Mon, 25 Apr 2022 20:19:44 -0400</pubDate>
      <guid>https://bradleycarey.com/posts/oh-my-posh/</guid>
      <description>&lt;h2 id=&#34;update&#34;&gt;&#xA;  Update&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#update&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://ohmyposh.dev/docs/migrating&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Oh My Posh&lt;/a&gt; has since migrated from PowerShell modules to an executable. See the updated version of this article &lt;a href=&#34;https://bradleycarey.com/posts/customizing-my-cli-using-oh-my-posh/&#34; &gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;why-customize&#34;&gt;&#xA;  Why Customize?&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#why-customize&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;For years I have used &lt;a href=&#34;https://cmder.net/&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Cmder&lt;/a&gt; terminal emulator for a fancy CLI while developing in Windows. Now that Microsoft has finally released a modern terminal it is finally time to put Cmder to rest. In this article I am documenting my opinionated manner of customizing my CLI.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
