DEV Community

Cover image for Make Windows Terminal Amazing
Christian Santos
Christian Santos

Posted on

Make Windows Terminal Amazing

Hi Guys, in my first post i want to share with you how to make your Windows Terminal and powerShell look incredible like in MacOS, hope you enjoy!

STEP 1 - Download Windows Terminal

You can download from Microsoft Store - Recommended

Alt Text

Or using Chocolatey:

choco install microsoft-windows-terminal
Enter fullscreen mode Exit fullscreen mode

STEP 2 - Install Git for Windows ( if you already have you can skip this step)

Just download and install Git For windows

Step 3 - Download and install FiraCode (an awesome font for developers)

FiraCode

Go config of Windows terminal (ctrl + ,) and add this line in "defaults:"

"fontFace": "Fira Code",

STEP 4 - Setup Powerline in Windows Terminal

  • Using PowerShell, install Posh-Git and Oh-My-Posh:
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
Enter fullscreen mode Exit fullscreen mode

Posh-Git adds Git status information to your prompt as well as tab-completion for Git commands, parameters, remotes, and branch names. Oh-My-Posh provides theme capabilities for your PowerShell prompt.

  • If you are using PowerShell default, install PSReadline withou the tag -AllowPrerelease :
Install-Module -Name PSReadLine -Scope CurrentUser -Force -SkipPublisherCheck
Enter fullscreen mode Exit fullscreen mode
  • If you are using PowerShell Core/6 and above, install PSReadline:
Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck
Enter fullscreen mode Exit fullscreen mode
  • Customize your PowerShell prompt Open your PowerShell profile with notepad $PROFILE or the text editor of your choice. This is not your Windows Terminal profile. Your PowerShell profile is a script that runs every time PowerShell starts.

In your PowerShell profile, add the following to the end of the file:

Import-Module posh-git
Import-Module oh-my-posh

Enter fullscreen mode Exit fullscreen mode

STEP 5 - Customize your Windows Terminal Theme

Now Download my theme here

And go to

C:\Users\Usuário\Documents\PowerShell\Modules\oh-my-posh\2.0.412\Themes

and paste the GrisDracula.ps1 you downloaded inside

Open your PowerShell profile with

notepad $PROFILE

, add the following to the end of the file like that:

Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Spaceship
Enter fullscreen mode Exit fullscreen mode

Now open settings of Windows Terminal again and add a custom color scheme like that:

"schemes": [
    {
      "name": "Dracula",
      "background": "#282A36",
      "black": "#21222C",
      "blue": "#BD93F9",
      "brightBlack": "#6272A4",
      "brightBlue": "#D6ACFF",
      "brightCyan": "#A4FFFF",
      "brightGreen": "#69FF94",
      "brightPurple": "#FF92DF",
      "brightRed": "#FF6E6E",
      "brightWhite": "#FFFFFF",
      "brightYellow": "#FFFFA5",
      "cyan": "#8BE9FD",
      "foreground": "#F8F8F2",
      "green": "#50FA7B",
      "purple": "#FF79C6",
      "red": "#FF5555",
      "white": "#F8F8F2",
      "yellow": "#F1FA8C"
    }
  ],
Enter fullscreen mode Exit fullscreen mode

In "defaults" add this line:

"colorScheme": "Dracula",
Enter fullscreen mode Exit fullscreen mode

And now you have an Amazing Windows Terminal in your workspace! :D

Extra- My Windows terminal Config

Download here

This is my first post i hope you liked, be free to give your feedback <3\
My gitHub

FONTS:
Dracula Theme,
oh-my-posh,
Tutorial: Set up Powerline in Windows Terminal.

Top comments (4)

Collapse
 
jorggyh profile image
Jefferson Vilela Freire • Edited

Boa tarde amigo, você fez exatamente o que eu estou tentando fazer, estou utilizando o Windows Terminal, com o tema Drácula, e Oh-My-Posh, porém não consigo utilizar o tema Spaceship, pois não é um tema padrão do Oh-My-Posh, como você conseguiu ?

dev-to-uploads.s3.amazonaws.com/i/...

Collapse
 
chrisfrontdev profile image
Christian Santos • Edited

Boa tarde amigo,
Perdão pela demora para responder.
Passo 5 bem no comecinho eu falo como faz para colocar o tema na pasta.

Abraços

Collapse
 
darthwalsh profile image
Carl Walsh

Just a heads up, the current v2 of oh-my-posh is in maintenance mode, and you can try out v3 which sounds almost ready: ohmyposh.dev/docs/

Collapse
 
anderssonpeter profile image
Peter

For those of you using powershell might be interested in my project github.com/AnderssonPeter/PowerType
(not done yet but might be when you read this)