Beautify Window Terminal Scheme

I have spent two days configuring Terminal. Because I meet some issues. But I have been solved all. This is the final result.

effect picture

If you like this, I will be sharing my configure methods.

First, you need to open Microsoft Store and search the terminal application program. doing download(Because my Microsoft have some unknown problem that I can't download it. But you could adopt another download method. There, I share a download link for you)

window terminal download link

original style

waiting for the install finished. You need to use an administrator authority setting terminal theme. the specific method is to press combination keyboardCtrl + Xand choice theWindow PowerShell(Admin) option. then execute two lines of commands:

Install-Moduleposh-git

Install-Moduleoh-my-posh

administrator power

notice:

If you have an error appear, you may not have configured thegit environment. so you need to configure it first.

reference article

ok, next step, we need to configureTerminal's local file. Opening Terminal window and input command:$profile. It can print the file's absolute path.

configure file path

Switching to the above path to findMicrosoft.PowerShell_profile.ps1file and open it with notepad. write three lines of codes and save them.

Import-Module posh-git

Import-Module oh-my-posh

Set-PoshPrompt -Theme agnoster

edit file

If you have completed the above operations,you will see the effect. At the same time, The Terminal window display was garbled.

garbled picture

The reason is that the final version ofTerminal didn't support the default font. so we need to download another font and configure it. There,  choice font isNerd Font.

Nerb Font download link

After enteringNerd Font's official website, We could directly choose the corresponding version of the system to download, and we need to unpack the downloaded package. Then go to the folder and select all fonts to install.

install fonts

when the installation is complete. you can go to the Fonts directory on disk C to see if it was successfully installed.

check result

If you do this we can solve the garbled code problem by configuring the font.

First, we need to switch back to theTerminal window and click the ▽ icon, selected theSettings option. entering thesettings desktop, and click the Open JSON filebutton. in this way, we can go to thesettings.json file that belongs to it. then, we need to add a 'fontFace' field to the list and add the name of the font.  I chose the font name is3270Medium Nerd Font Complete.

settings.json

Amazing! 

fonts effect picture

At this point, we have completely solved the garbled code problem. the following, We will configure the background image to beautify it.

Before you start, you should prepare a image that you like. then, open settings.json again, adding 'backgroundImage' field into the list, and write the image's path. But we'd better enter the image'path manually.If you copy directly from the file properties, you may be get the following error.

unvalid path

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容