banner
Barry

Barry

偶尔摆烂,经常偶尔.
twitter
github
tg_channel
medium
email
steam_profiles

Make Windows Terminal more user-friendly.

Making Windows Terminal Easier to Use#

1. Personalization and Beautification#

Open the json file in the wt (Windows Terminal) settings panel, then find the defaults keyword and append the following code in the curly braces:

Acrylic Glass Effect
"useAcrylic": true, 
Acrylic Glass Effect Opacity
"acrylicOpacity": 0.2,
Background Wallpaper
"backgroundImage": "C:/Users/YangChentao/Pictures/Saved Pictures/wt.jpeg", 
Background Wallpaper Opacity
"backgroundImageOpacity": 0.4,
"fontFace": "JetBrainsMono Nerd Font Mono",
"fontSize": 14

2. oh-my-posh#

Download oh-my-posh from the Microsoft Store.

After the download and installation are complete, it will be automatically configured.

At this time, enter code $PROFILE in wt to open the configuration file with vscode, and add the following code after opening:

oh-my-posh init pwsh --config $env:POSH_THEMES_PATH\montys.omp.json | Invoke-Expression

cls

cls is the clear screen startup item.

3. Install Nerd Fonts to Solve the Issue of Missing oh-my-posh Font Icons#

Recommended font: JetBrains Mono Medium Nerd Font Complete Mono

Download and install it, then change it in the wt configuration file.

4. Solve the Issue of SSH Connection Automatically Disconnecting After a Long Time of Inactivity#

Add the following code to the C:\Users\Username.ssh\config file (if this file does not exist, create one yourself):

Host *
  ServerAliveInterval 40

5. Start Focus Mode to Make Your WT More Stylish#

Focus Mode

Add -nologo at the end of the PowerShell startup command line.
Copyright Information

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.