본문 바로가기
OS/Windows

[Windows] Getting Started with Windows Terminal

by llHoYall 2020. 12. 24.

I like a Windows Terminal as terminal on Windows.

I had waited it since I found out, and I've been using it since beta.

If you don't use it now, try it out. You will like it like me.

Installation

I use chocolatey for package manager Windows.

2020/08/30 - [OS/Windows] - [Windows] Chocolatey

 

$ choco install microsoft-windows-terminal --pre

 

Now, run the Windows Terminal.

$ wt

Usage

Click the down arrow, then you can show the menu.

Look at this!! You have fancy terminal even on Windows!!

My favorite feature is I can customize this!

For example, I added a new prompt with special environment variable for my work.

Customization

Press <Ctrl + ,> key, then you can look the settings.json file.

Put the setting that you want into this file.

Fonts

I'm using Cascadia Code fonts of Microsoft.

$ choco install cascadiacode

Add fonts to settings. If you want to different, put that.

{
  ...
  "profiles": {
    "defaults": {
      // Put settings here that you want to apply to all profiles.
      "fontFace": "Cascadia Code"
    },
    ...
  }
  ...
}

I apply this font to all profiles.

Colors

Windows Terminal has default color schemes like Campbell, Campbell Powershell, Vintage, One Half Dark, One Half Light, Tango Dark, and Tango Light.

If you want to set your own color profile, follow this guide.

{
  ...
  "profiles": {
    "defaults": {
      ...
      "colrScheme": ""
    },
    ...
  },
  "schemes": [
    {
      "name" : "",

      "cursorColor": "#",
      "selectionBackground": "#",

      "background" : "#",
      "foreground" : "#",

      "black" : "#",
      "blue" : "#",
      "cyan" : "#",
      "green" : "#",
      "purple" : "#",
      "red" : "#",
      "white" : "#",
      "yellow" : "#",
      "brightBlack" : "#",
      "brightBlue" : "#",
      "brightCyan" : "#",
      "brightGreen" : "#",
      "brightPurple" : "#",
      "brightRed" : "#",
      "brightWhite" : "#",
      "brightYellow" : "#"
    },
    ...
  ],
  ...
}

Set the name of your color scheme, and set the color code for each items.

Acrylic

This setting allows to transparent window.

{
  ...
  "profiles": {
    "defaults": {
      ...
      "useAcylic": true,
      "acrylicOpacity": 0.9
    },
    ...
  },
  ...
} 
     

Set the opacity level. 0.9 means 90% transparency.

Cursor

This setting allows to change shape of the cursor.

{
  ...
  "profiles": {
    "defaults": {
      ...
      "cursorShape": "vintage"
    },
    ...
  },
  ...
}

The available options are like below.

  • "bar" : ┃(default)
  • "vintage" : ▃
  • "underscore" : ▁
  • "filledBox" : █
  • "emptyBox" : ▯

Etc

You can apply settings to each independent profile.

 

There are many options to set.

Please take a look at this site.

Windows Terminal Profile Settings | Microsoft Docs

Last Word

I hope you to like Windows Terminal like me.

Try work with this.

'OS > Windows' 카테고리의 다른 글

[Windows] Hibernate 켜기  (0) 2022.03.08
[PowerShell] Get Elapsed Time using PowerShell Script  (0) 2021.12.21
[Windows] Microsoft PowerToys  (0) 2021.07.15
[Windows] Chocolatey  (0) 2020.08.30

댓글