Windows terminal uses nushell+oh-my-posh to beautify

Time:2022-9-23

First look at the renderings

1.png

Please point out if the steps are wrong.

Install nushell from github

Download from github releaseRelease 0.66.2 · nushell/nushell (github.com)

github release download speed may be slow, you can download it hereDownload (serctl.com)

Install windows terminal in microsoft store

Install oh-my-posh on Microsoft Store

Winget can also be used, but requires the correct way to access the Internet.

Initialize oh-my-posh

oh-my-posh init nu --print | save %USERPROFILE%\\.config\\nu\\init.nu

Using the above command will generate an init.nu script

Execute init.nu when nushell starts

Add the following to the end of the config.nu file

source %USERPROFILE%\\.config\\nu\\init.nu

It ends here

Recommended Today

Handwritten Vue2 series compiler

When learning becomes a habit, knowledge becomes common sense.thank you allfocus on、like、collectandComment。 New videos and articles will be sent on the WeChat public account as soon as possible, please pay attention:Li Yongning lyn Articles have been included ingithub repository liyongning/blog, Welcome to Watch and Star. foreword Next, we will officially enter the handwritten Vue2 series. […]