<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Anit Jha</title>
    <description>The latest articles on DEV Community by Anit Jha (@anitkrjha).</description>
    <link>https://dev.to/anitkrjha</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F947101%2Fef6af267-8097-4223-abe8-e1ed50ac98d6.jpg</url>
      <title>DEV Community: Anit Jha</title>
      <link>https://dev.to/anitkrjha</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anitkrjha"/>
    <language>en</language>
    <item>
      <title>Customize Grub Theme Fedora</title>
      <dc:creator>Anit Jha</dc:creator>
      <pubDate>Sun, 07 Jan 2024 20:16:05 +0000</pubDate>
      <link>https://dev.to/anitkrjha/customize-grub-theme-fedora-32ak</link>
      <guid>https://dev.to/anitkrjha/customize-grub-theme-fedora-32ak</guid>
      <description>&lt;h3&gt;
  
  
  &lt;strong&gt;Why Am I Writing This?&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Today, I decided to switch up my Fedora GRUB2 theme. After sifting through tutorial after tutorial and restarting my computer a whopping 12 times, I think I've finally cracked the code on the correct way to do it. So let's dive right in! ✈️✈️&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Things You Would Need&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Before we start, let's ensure you've got everything handy:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Follow Instructions Carefully:&lt;/strong&gt; No skipping steps allowed! ⚠️&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Grab a Grub Theme:&lt;/strong&gt; You'll need one from &lt;a href="https://www.gnome-look.org/browse?cat=109&amp;amp;ord=rating"&gt;Gnome-Look&lt;/a&gt;. Surprise, surprise!&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Familiarity with Command Line:&lt;/strong&gt; Get a bit cozy with it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Patience is Key:&lt;/strong&gt; I'll walk you through each step in detail.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;Step 0: Try &lt;b&gt;using grub-customizer&lt;/b&gt; first&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;If that does not work then  ⬇️⬇️⬇️&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Step 1: Downloading a Grub Theme&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;First things first, head to &lt;a href="https://www.gnome-look.org/browse?cat=109&amp;amp;ord=rating"&gt;Gnome-Look&lt;/a&gt; and pick a theme you fancy. Most likely, it'll be in an archive file.&lt;/p&gt;

&lt;p&gt;Once downloaded, double-click to extract it.&lt;/p&gt;

&lt;p&gt;Now pop open the terminal and write&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo cp&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; /path/to/extracted/theme /boot/grub2/themes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;/path/to/extracted/theme&lt;/code&gt; with the actual path to the extracted theme folder.&lt;/p&gt;

&lt;p&gt;This command will copy the entire extracted theme folder to the &lt;code&gt;/boot/grub2/themes&lt;/code&gt; directory using the &lt;code&gt;sudo&lt;/code&gt; command for administrative privileges.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;It's important to note that when using the command line, you need to specify the correct paths to ensure the theme folder is a accurately copied to the designated GRUB themes directory. Adjust the path accordingly based on where the theme is extracted.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Congrats! You've aced a major step. Now, just stick to my commands religiously.&lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;Step 2: Editing the Grub Config&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Time to play with some configs! Open the terminal and access &lt;code&gt;/etc/default/grub&lt;/code&gt; using your favorite editor:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;nano /etc/default/grub
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Your file should mirror this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;GRUB_TIMEOUT="10"
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT="saved"
GRUB_DISABLE_SUBMENU="true"
#GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG="true"

export GRUB_COLOR_NORMAL="light-gray/black"
export GRUB_COLOR_HIGHLIGHT="magenta/black"
GRUB_THEME="/boot/grub2/themes/&amp;lt;YOUR-THEME&amp;gt;/theme.txt"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Simply Replace &lt;code&gt;&amp;lt;your-theme&amp;gt;&lt;/code&gt; with your actual theme folder name&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This file controls Fedora's &lt;code&gt;grub.cfg&lt;/code&gt; generation, which is crucial for booting.&lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;Step 3: Generating the Grub.Cfg File&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Almost there! Run this commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;grub2-mkconfig &lt;span class="nt"&gt;-o&lt;/span&gt; /boot/grub2/grub.cfg
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;🚫🚫 Don't run this command &lt;code&gt;sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg&lt;/code&gt; because this file is meant not to be touched after &lt;strong&gt;fedora 33&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Reboot&lt;/strong&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;You're Welcome If It Helped You&lt;/strong&gt; 😎
&lt;/h3&gt;

&lt;p&gt;Remember, it's all about patience and precision! If you're having a blast customizing your Fedora GRUB2, then my mission here is accomplished. Happy theming!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Elevate Your Windows PowerShell: My Personal Customization Guide</title>
      <dc:creator>Anit Jha</dc:creator>
      <pubDate>Sun, 15 Oct 2023 15:14:00 +0000</pubDate>
      <link>https://dev.to/anitkrjha/elevate-your-windows-powershell-my-personal-customization-guide-5gf6</link>
      <guid>https://dev.to/anitkrjha/elevate-your-windows-powershell-my-personal-customization-guide-5gf6</guid>
      <description>&lt;p&gt;Hi 👋🏻! Today I'm going to talk about how I setup windows PowerShell on my windows machine. As a developer, I think having a nice-looking terminal and some good useful tools can push towards being a little more productive. Read more blogs at &lt;a href="https://anit.dev"&gt;My website&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Terminal Application
&lt;/h2&gt;

&lt;p&gt;There are many terminal applications for windows, but my favorite is the prepackaged &lt;strong&gt;Windows Terminal App&lt;/strong&gt;.&lt;br&gt;
It is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Visually Appealing&lt;/li&gt;
&lt;li&gt;Highly customizable&lt;/li&gt;
&lt;li&gt;Tabs Support.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Customizing the Appearance of Windows Terminal
&lt;/h2&gt;

&lt;p&gt;First and foremost, set the Windows Terminal as your default Terminal App.&lt;/p&gt;

&lt;p&gt;Access your settings with a quick &lt;code&gt;Ctrl + ,&lt;/code&gt; shortcut. Within the settings menu, find the option to change the default Terminal Application for your machine, and select &lt;code&gt;windows terminal&lt;/code&gt; from the dropdown.&lt;/p&gt;

&lt;p&gt;With your default terminal all sorted! 💫&lt;br&gt;&lt;br&gt;
Now it's time to give it a fresh look.&lt;br&gt;
I'm all about that cool acrylic aesthetic in my Terminal App.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Open settings&lt;/strong&gt; 👉, then, on the left-hand-side menu, head to 👉 &lt;strong&gt;Profiles&lt;/strong&gt;, and within that, navigate to 👉 &lt;strong&gt;Defaults&lt;/strong&gt;. Inside the default settings, you'll find 👉 &lt;strong&gt;Appearance&lt;/strong&gt;.&lt;br&gt;
Now, here's where you can tweak the theme to match your style.&lt;br&gt;
I, for one, love to throw in a &lt;strong&gt;Background Image&lt;/strong&gt; and give the &lt;strong&gt;Terminal a bit of blur&lt;/strong&gt; for that extra flair.&lt;/p&gt;
&lt;h2&gt;
  
  
  Installing Scoop
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://scoop.sh"&gt;Scoop&lt;/a&gt; is your go-to Windows package manager, much like Ubuntu's apt and Fedora's dnf. It simplifies the management of apps and binaries on your Windows machine. With a single command, you can easily update, install, or delete binaries, eliminating the need for manual configuration of environment variables and paths. Scoop offers various buckets filled with a wide range of apps, and it even makes font installation a breeze.&lt;/p&gt;

&lt;p&gt;Before we start customizing the prompt I recommend installing the &lt;strong&gt;&lt;a href="https://scoop.sh"&gt;SCOOP&lt;/a&gt;&lt;/strong&gt; package manager for windows, It will make our work very easy moving froward.&lt;/p&gt;

&lt;p&gt;In your terminal run these commands one by one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;Set-ExecutionPolicy&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;RemoteSigned&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Scope&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;CurrentUser&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;irm&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;get.scoop.sh&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;iex&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will install SCOOP in your system.&lt;/p&gt;

&lt;h2&gt;
  
  
  NERD Font Installation with Scoop
&lt;/h2&gt;

&lt;p&gt;Before customizing your prompt with glyphs and symbols like the GitHub or folder icons, you'll need to install a NERD font. Regular fonts just can't handle these unique characters, but the NERD fonts have got you covered. You can explore other nerd fonts at (&lt;a href="https://nerdfonts.com"&gt;https://nerdfonts.com&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;My personal favorite NERD font is Cascadia-Code, and here's where the Scoop magic comes into play. If you've ever attempted to install a custom font, you're aware that it often involves multiple steps. Scoop simplifies the process to just one command. Here's how it's done:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Start by adding the NERD Font bucket to your Scoop setup:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;scoop&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;bucket&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;add&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;nerd-fonts&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Next, install the Cascadia Code NERD font with this command:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;scoop&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;install&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Cascadia-Code&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This straightforward process will add the Cascadia-Code font to your system, making it available for you to use.&lt;/p&gt;

&lt;h3&gt;
  
  
  Changing Your Terminal Font
&lt;/h3&gt;

&lt;p&gt;Now that you have the NERD font installed, it's time to change your terminal font to Cascadia-Code. Here's how to do it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Navigate to your terminal's settings.&lt;/li&gt;
&lt;li&gt;Look for "Defaults" and then "Appearance."&lt;/li&gt;
&lt;li&gt;In the "Font Face" option, select "Cascadia-Code."&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;With these simple steps, you'll have your terminal decked out with the NERD font of your choice, ready to make your prompt uniquely yours.&lt;/p&gt;

&lt;h2&gt;
  
  
  Customizing the prompt using OH-MY-POSH.
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://ohmyposh.dev/"&gt;Oh-My-Posh&lt;/a&gt;&lt;/strong&gt;, is my favourite tool for making my prompt look super cool. It gives my terminal a unique, fancy style. Oh-My-Posh makes it super easy. A nice prompt makes a dev life easier.&lt;/p&gt;

&lt;h3&gt;
  
  
  Getting Oh-My-Posh Installed
&lt;/h3&gt;

&lt;p&gt;Te main bucket is already added, you can skip this if you want...&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;scoop&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;bucket&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;add&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;main&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Get yourself oh-my-posh.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;scoop&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;install&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;oh-my-posh&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now that oh-my-posh is installed its time to configure our windows profile script.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setting Up Your PowerShell Profile
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Z69Q94qY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lqb3t7ejij3wu8h0jiue.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Z69Q94qY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lqb3t7ejij3wu8h0jiue.png" alt="Terminal Prompt configuration" width="747" height="92"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;PowerShell profile, it's like a special script that runs whenever you start up PowerShell. You can do all sorts of things with it to make your PowerShell experience more awesome. You can add shortcuts, like nicknames, and extra tools that load up when you start PowerShell. Plus, you can make your own special functions to fit the way you work. It's like a power-up for PowerShell!&lt;/p&gt;

&lt;p&gt;To open your PowerShell profile in Notepad, just type this command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;notepad&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$profile&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you come across an error, don't worry! You can fix it with this command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;New-Item&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Path&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="bp"&gt;$PROFILE&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Type&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;File&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Force&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Give it a try, and then open your profile again. If you haven't made any changes before, your profile will be empty.&lt;/p&gt;

&lt;p&gt;To make your prompt look like mine, add this line to your profile and save it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;oh-my-posh&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;init&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;pwsh&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--config&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"C:\Users\anitj\scoop\apps\oh-my-posh\17.12.0\themes\craver.omp.json"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Invoke-Expression&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After saving, close and reopen the terminal to reload the profile. It'll make your PowerShell prompt like mine and everything will work together smoothly.&lt;/p&gt;

&lt;p&gt;You can also change the prompt theme to match your preferences. For more information and customization options, you can refer to the oh-my-posh documentation at this link: '&lt;a href="https://ohmyposh.dev/docs/installation/customize"&gt;https://ohmyposh.dev/docs/installation/customize&lt;/a&gt;'. It's a great resource for tailoring your PowerShell experience exactly the way you like it.&lt;/p&gt;

&lt;p&gt;Sure, let's briefly discuss how to install two essential PowerShell modules: "Terminal Icons" and "PSReadLine."&lt;/p&gt;

&lt;h2&gt;
  
  
  Install Terminal Icons.
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--VNRr-tY7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jrroaj88d9iblj4zije5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--VNRr-tY7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jrroaj88d9iblj4zije5.png" alt="Icons to understand what file extenstion , Terminal Icons" width="800" height="465"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Terminal Icons is a module that adds icons to your terminal for a visually enhanced experience. You can install it by following these steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open PowerShell.&lt;/li&gt;
&lt;li&gt;Use the following command to install Terminal Icons:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;Install-Module&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Terminal-Icons&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Scope&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;CurrentUser&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;You may be prompted to install the module from the PSGallery repository. Confirm the installation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now, you have Terminal Icons installed, and it will automatically enhance your terminal interface with icons for files and folders, making it easier to navigate.&lt;/p&gt;

&lt;p&gt;Now add this line to your &lt;strong&gt;profile&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;Import-Module&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Terminal-Icons&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Install PSReadLine
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--AsJ4Q2Mj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jisplb0jb6rb5qptp3cj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AsJ4Q2Mj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jisplb0jb6rb5qptp3cj.png" alt="Auto Complete from history" width="747" height="92"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;PSReadLine is a module that enhances the PowerShell command line editing experience. It adds features like syntax highlighting, tab completion, and more. To install it, follow these steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open PowerShell.&lt;/li&gt;
&lt;li&gt;Use the following command to install PSReadLine:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;Install-Module&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;PSReadLine&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Scope&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;CurrentUser&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Confirm the installation if prompted.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Once PSReadLine is installed, it will significantly improve your PowerShell command line editing capabilities. You can customize it further by modifying your PowerShell profile.&lt;/p&gt;

&lt;p&gt;Now append this line to your &lt;strong&gt;profile&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;Import-Module&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Terminal-Icons&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These modules, Terminal Icons and PSReadLine, can enhance your PowerShell experience by providing a more visually appealing interface and improving your command line editing capabilities.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Now reload your poweshell by closing and reopening the terminal.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Custom Functions for Enhanced PowerShell Workflow
&lt;/h2&gt;

&lt;p&gt;In PowerShell, you can tailor your experience by adding custom functions that simplify common tasks and streamline your workflow.&lt;br&gt;
I use the below functions to make my life easier.&lt;/p&gt;
&lt;h3&gt;
  
  
  Git Functions
&lt;/h3&gt;
&lt;h4&gt;
  
  
  1. &lt;code&gt;gcom&lt;/code&gt; - Simplify Git Commits
&lt;/h4&gt;

&lt;p&gt;The &lt;code&gt;gcom&lt;/code&gt; function streamlines the process of committing changes in a Git repository. It's perfect for those who frequently make Git commits. Here's how it works:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="kr"&gt;function&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;gcom&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="n"&gt;git&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;add&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="n"&gt;git&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;commit&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-m&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="bp"&gt;$args&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When you run &lt;code&gt;gcom "Your commit message here"&lt;/code&gt;, it automatically stages all changes and commits them with the provided message. No need to run separate &lt;code&gt;git add&lt;/code&gt; and &lt;code&gt;git commit&lt;/code&gt; commands.&lt;/p&gt;

&lt;h4&gt;
  
  
  2. &lt;code&gt;lazyg&lt;/code&gt; - Commit and Push in One Step
&lt;/h4&gt;

&lt;p&gt;For an even more streamlined Git workflow, the &lt;code&gt;lazyg&lt;/code&gt; function takes the automation a step further. It stages changes, commits with your message, and then pushes the changes to the remote Git repository:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="kr"&gt;function&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;lazyg&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="n"&gt;git&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;add&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="n"&gt;git&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;commit&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-m&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="bp"&gt;$args&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="n"&gt;git&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;push&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use it like this: &lt;code&gt;lazyg "Your commit message here"&lt;/code&gt;. This "lazy" approach automates multiple steps, making your Git interactions even more efficient.&lt;/p&gt;

&lt;h3&gt;
  
  
  Utility Functions
&lt;/h3&gt;

&lt;h4&gt;
  
  
  3. &lt;code&gt;which&lt;/code&gt; - Locate Command Definitions
&lt;/h4&gt;

&lt;p&gt;The &lt;code&gt;which&lt;/code&gt; function is a handy utility for pinpointing the location of a specific command or function within your PowerShell environment. It takes a command name as an argument and returns its definition. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="kr"&gt;function&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;which&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="n"&gt;Get-Command&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Select-Object&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-ExpandProperty&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Definition&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Running &lt;code&gt;which Get-ChildItem&lt;/code&gt; will reveal the definition of the &lt;code&gt;Get-ChildItem&lt;/code&gt; command in your environment.&lt;/p&gt;

&lt;h4&gt;
  
  
  4. &lt;code&gt;whichdir&lt;/code&gt; - Find Command Directories
&lt;/h4&gt;

&lt;p&gt;Similar to &lt;code&gt;which&lt;/code&gt;, the &lt;code&gt;whichdir&lt;/code&gt; function returns the directory path where a command or function is defined. It uses the &lt;code&gt;Split-Path&lt;/code&gt; cmdlet to extract the directory path:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="kr"&gt;function&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;whichdir&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nv"&gt;$directory&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Split-Path&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Parent&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Get-Command&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Select-Object&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-ExpandProperty&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Definition&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="kr"&gt;return&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$directory&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Executing &lt;code&gt;whichdir Get-ChildItem&lt;/code&gt; will provide the directory where &lt;code&gt;Get-ChildItem&lt;/code&gt; is defined.&lt;/p&gt;

&lt;p&gt;By adding these custom functions to your PowerShell profile, you ensure they are available each time you open PowerShell. They not only simplify Git-related tasks but also help you explore your PowerShell environment efficiently.&lt;/p&gt;

</description>
      <category>powershell</category>
      <category>customization</category>
      <category>terminal</category>
      <category>windows</category>
    </item>
    <item>
      <title>Git Stash : Beginner's Guide</title>
      <dc:creator>Anit Jha</dc:creator>
      <pubDate>Fri, 07 Jul 2023 18:27:27 +0000</pubDate>
      <link>https://dev.to/anitkrjha/git-stash-beginners-guide-35k1</link>
      <guid>https://dev.to/anitkrjha/git-stash-beginners-guide-35k1</guid>
      <description>&lt;h3&gt;
  
  
  Introduction: The Power of Git Stash
&lt;/h3&gt;

&lt;p&gt;Git stash is a powerful command that allows developers to temporarily save changes and switch branches without the need to commit unfinished work. It is recommended to use &lt;code&gt;git stash&lt;/code&gt; sparingly, in rare situations. In this blog post, I will guide you through practical examples of using &lt;code&gt;git stash&lt;/code&gt; in your everyday workflow, drawing from my own experience where git stash proved to be invaluable. These examples will help you effectively organize your work and seamlessly switch between branches. Let's get started!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YTeOmKBI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vc8kgls7tkwkyrqws3dv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YTeOmKBI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vc8kgls7tkwkyrqws3dv.png" alt="Git stash will change your life" width="257" height="196"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Use Case 1: Stashing Changes Before Switching Branches
&lt;/h3&gt;

&lt;p&gt;Imagine you are working on a new feature branch called "User-Profile" that involves modifying multiple files. Suddenly, you realize you need to make changes to the main branch to fix an urgent bug. Instead of committing the incomplete changes and polluting your commit history and dealing with merge conflicts later, you can use &lt;code&gt;git stash&lt;/code&gt; to save your progress:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git stash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This command will stash your changes, allowing you to switch to the main branch and fix the urgent bug without conflicts. Once you have resolved the issue, you can return to the "User-Profile" branch and apply the stashed changes using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git stash apply
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Alternatively, you can use &lt;code&gt;git stash pop&lt;/code&gt;. The &lt;code&gt;git stash pop&lt;/code&gt; command removes the stash from the stash list, while &lt;code&gt;git stash apply&lt;/code&gt; keeps the stash for future use.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Use Case 2: Stashing Multiple Sets of Changes
&lt;/h3&gt;

&lt;p&gt;In some cases, you might be working on multiple tasks that require extensive modifications across various files. To keep things organized, you can stash each set of changes separately. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git stash save &lt;span class="s2"&gt;"Task: Implement Payment Gateway"&lt;/span&gt;
git stash save &lt;span class="s2"&gt;"Feat: Introduce table view in dashboard"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--avFXpssA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rglntj0rtzm6yfwfkr9j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--avFXpssA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rglntj0rtzm6yfwfkr9j.png" alt="Output of git stash save" width="800" height="66"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By providing descriptive messages like "Task: Implement Payment Gateway," you can easily identify the stashed changes later. Once you have completed the first task, you can return to the second task and apply the stashed changes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git stash apply stash^&lt;span class="o"&gt;{&lt;/span&gt;/&amp;lt;stash-name&amp;gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--pgmh9vlu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ncnkotusqacfrikno4p3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pgmh9vlu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ncnkotusqacfrikno4p3.png" alt="git stash apply" width="800" height="144"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Use Case 3: Stashing Conflicting Changes
&lt;/h3&gt;

&lt;p&gt;Imagine you are working on a project with a teammate, and you both make changes to the same file simultaneously. However, your teammate's changes conflict with yours. &lt;br&gt;
This situation happened a few times, when I was working on the Moksha's website with my team-mate Harsh. In this situation, you can stash your changes to resolve the conflict:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git stash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After stashing your changes, you can pull the latest changes from the remote repository and apply them to your branch:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git pull origin main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now that your branch is up to date, you can apply your stashed changes and resolve any conflicts that arise:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git stash apply
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Use Case 4: Checking the Stash List
&lt;/h3&gt;

&lt;p&gt;To keep track of your stashes, you can use the &lt;code&gt;git stash list&lt;/code&gt; command. It provides an overview of your stashed changes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git stash list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--IuaMHjHI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/psxvdn3z7a17rof1xn0j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--IuaMHjHI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/psxvdn3z7a17rof1xn0j.png" alt="output of git stash list command" width="546" height="73"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The output will display a list of stashes, including their respective stash index and descriptions. This allows you to easily identify and select the correct stash when applying or discarding changes.&lt;/p&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;Congratulations! You've learned how to leverage the power of &lt;code&gt;git stash&lt;/code&gt; to effectively manage your work and switch between branches seamlessly. By stashing changes before switching branches, handling conflicting changes, and using descriptive messages, you can streamline your development workflow. Remember stash is not a very common command you will be using but it comes in handy in such situations.&lt;br&gt;
Stay tuned for more valuable blogs about development and developer tools. Happy coding!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
