My terminal setup

I blogged about how terminal is becoming popular for .NET developers. There are many people who do not use IDE like ‘Visual Studio’ for basic work instead they use editor like ‘Visual Studio Code’ and terminal. Almost all the things you can do from terminal as a .NET developer now.

Creating a hello world application with .NET is very easy now. You need to install the SDK and open a terminal and use the below commands to create a hello world console application.

mkdir ConsoleApp1

cd ConsoleApp1

dotnet new console

dotnet run

There are many nice terminal applications which adds value over default Windows command prompt. Windows Terminal is one of them. You can use many plugins with PowerShell to make that even eye catchy. Below are some of them which I am using now a days.

Mostly I use PowerShell in Windows and bash in Ubuntu (WSL). I have customized the Windows Terminal for these two profiles.

I am using Fira Code in my terminal which is installed from Nerd Fonts. To make my PowerShell look nice, I have installed oh my posh and terminal icons.

I am using different themes for PowerShell and Ubuntu. I got the ‘Ubuntu’ theme from https://windowsterminalthemes.dev.

There is a background image in bottom right location which is different for PowerShell and Ubuntu. My Windows Terminal profiles looks like below.

{
  "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
  "name": "PowerShell",
  "source": "Windows.Terminal.PowershellCore",
  "colorScheme": "Campbell Powershell",
  "backgroundImage": "C:\\PowerShell_icon.png",
  "backgroundImageAlignment": "bottomRight",
  "backgroundImageStretchMode": "none",
  "backgroundImageOpacity": 0.1
},
{
  "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",                
  "name": "Ubuntu",
  "source": "Windows.Terminal.Wsl",
  "colorScheme": "Ubuntu",
  "backgroundImage": "C:\\Ubuntu.ico",
  "backgroundImageAlignment": "bottomRight",
  "backgroundImageStretchMode": "none",
  "backgroundImageOpacity": 0.1
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s