DEV Community

Aditya Deshlahara
Aditya Deshlahara

Posted on

5 1

How to increase productivity at work with a pretty Windows Terminal and smart Powerline tools

windows terminal

Windows Terminal is the latest software update for your boring and ugly looking command-line tools like cmd, powershell and WSL (Windows Subsystem for Linux)

Top Features:

  • Google Chrome like multi-tabs suppport
  • GPU acceleration (for faster text rendering)
  • Split panes support(eg: 4 cmd tabs at once)
  • Custom themes and styling (you dress it like you want)
  • Open Source project (you too can contribute to make it better)

Microsoft’s intervention in the open-source community has opened up new doors for developers like us and has brought in more flexibility too.

Pre-requisites

// Windows Users, downoad file with the extension .msi
PowerShell-X.X.X-win-x64.msi
Enter fullscreen mode Exit fullscreen mode
STEPS TO INSTALL:
1. Download the .zip file from the releases page
2. Right-click on the font file and install it
Enter fullscreen mode Exit fullscreen mode

Installation Steps - Guide

  1. Open PowerShell Core prompt
  2. Install Posh-Git using this command:
Install-Module posh-git -Scope CurrentUser
Enter fullscreen mode Exit fullscreen mode

Posh-Git solves our age-old problem for checking git status or git branch information and provides interesting features :

Tab completion intellisense (type-in the command and it gives you auto-completion just by hitting Tab button)

  • Git commands
  • Parameters /git flags
  • Branch names
  1. Install Oh-My-Posh using this command:


Install-Module oh-my-posh -Scope CurrentUser

Oh-My-Posh adds powerful theming support and other capabilities to Powershell for making a fluid git experience possible

NOTE: While running the above commands, you may get an option to install NuGet. So go ahead and install it by pressing [Y] key

  • (Optional) Install PSReadline if you are running PowerShell Core
  • Customize the PowerShell prompt with custom styles
notepad $PROFILE
Enter fullscreen mode Exit fullscreen mode
  • Add the following lines to the notepad file and save it using Ctrl + S (Windows)
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox
Enter fullscreen mode Exit fullscreen mode
  • Open Windows Terminal settings config file
  • Open Windows Terminal
  • Ctrl + , (or manually go to settings like below)

terminal settings

  • Set a nice default font-family for your Windows Terminal
  1. Find "defaults" object under "profiles" object
  2. Paste the following line under "defaults" object
"defaults":
   {
     // Put settings here that you want to apply to all profiles.
     "fontFace": "Cascadia Code PL",
   },
Enter fullscreen mode Exit fullscreen mode

Bingo!

Now your productivity will boost up while you work on your dreams…

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (1)

Collapse
 
saurabhsolanke profile image
Saurabh Solanke

Noice

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

AWS Security LIVE!

Hosted by security experts, AWS Security LIVE! showcases AWS Partners tackling real-world security challenges. Join live and get your security questions answered.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️