Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the method of installing and configuring Windows Terminal

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly explains "what is the method of Windows Terminal installation and configuration". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what is the method of Windows Terminal installation and configuration".

1 installation

Installation can be done from the App Store (search directly) or Github installation (you can poke it here):

Download the file in msixbundle format and open the installation directly.

2 prepare 2.1 download fonts before configuration

FiraCode is recommended. The download link is stamped here.

After decompression, select one of the ttf installations:

2.2 install PowerShell Core

The PowerShell Core here is not the same thing as the built-in PowerShell, the former can be cross-platform, the download link is stamped here.

You can download it in msi format directly under Windows:

After installation, you can compare the new PowerShell Core with a black background by default, and the title is different:

3 configuration 3.1Module # PSReadlineInstall-Module-Name PSReadLine-AllowPrerelease-Force# posh-gitInstall-Module posh-git-Scope CurrentUser# oh-my-poshInstall-Module oh-my-posh-Scope CurrentUser

It may get stuck during installation, just wait a moment.

In addition, untrusted repositories may be prompted, just select y:

3.2 modify PWSH to the default terminal

Open the configuration file of Window Terminal to see if there is PowerShell Core in list. If not, manually add it to list:

{"guid": "{60c54bbd-c2c6-5271-96e7-009a87ff44bf}", "name": "PowerShell Core", / / "icon": "C:\\ My\\ PowerShell\\ 7\ ps_black_64-svg.ico", "commandline": "pwsh.exe-- nologo", "hidden": false}

Guid can be copied from cmd and one of the characters can be modified. CommandLine can directly enter pwsh.exe, and the annoying prompt can be removed by the-- nologo parameter. As for icons, there are no icons by default. You need to add them manually. You can download them from PowerShell's Github, convert them to ico format, and enter the path to display them normally:

3.3 beautification

Because oh-my-posh is installed, you can use Set-Theme to switch themes, such as:

Set-Theme Agnoster

Enter Set-Theme to complete the theme by Tab.

In addition, the modified theme is only temporary. If you want to take effect permanently, you need to write it to the configuration file. Enter:

$profile

The location of the configuration file will be displayed, and everyone is different. If not, create a new one and enter:

Import-Module posh-gitImport-Module oh-my-poshImport-Module PSReadLineSet-Theme Agnoster

You can make the theme take effect forever.

In addition, if you are not satisfied with the color of the theme, you can modify the theme color with Show-Colors and Show-ThemeColors.

Thank you for reading, the above is the content of "what is the method of Windows Terminal installation and configuration". After the study of this article, I believe you have a deeper understanding of what the method of installation and configuration of Windows Terminal is, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report