PowerShell sets the most beautiful interface

To install scoop on Windows:

what is scoop

The installation source search tool under windows is somewhat similar to yum under centos and apt under Ubuntu. There are no ads with this pull down installer.

Scoop official website:  https://scoop.sh/ A command-line installer for Windows https://scoop.sh/

Check the PowerShell version:

$PSVersionTable.PSVersion

Change script execution policy (required)

set-executionpolicy remotesigned -s cu

install command

iex (new-object net.webclient).downloadstring('https://get.scoop.sh')

 Installing scoop reports an error:

 solution:

 iex "& {$(irm get.scoop.sh)} -RunAsAdmin"

Install the latest PowerShell:

https://github.com/PowerShell/PowerShell/releaseshttps://github.com/PowerShell/PowerShell/releases

Reasons to install the latest version of PowerShell:

Because the default version of the system is very low, it is not compatible with the latest technology, so the latest PowerShell should be used.

default inC:\Program Files\PowerShell\7\

 Install Windows Terminal Preview:

After restarting the computer, this option will appear in the right-click menu:

If a Connection Refused error occurs during scoop installation, it is because no proxy is set, just follow the configuration below: 

{
  "last_update": "2023-07-15T01:01:38.5264301+08:00",
  "proxy"       : "127.0.0.1:7890",
  "scoop_branch": "master",
  "scoop_repo": "https://github.com/ScoopInstaller/Scoop"
}
scoop bucket add extras
scoop install windows-terminal

Install oh-my-posh:

scoop install https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/oh-my-posh.json

 Install fonts:

Nerd Font

Nerd Fonts - Iconic font aggregator, glyphs/icons collection, & fonts patcherIconic font aggregator, collection, & patcher: 9,000+ glyph/icons, 50+ patched fonts: Hack, Source Code Pro, more. Popular glyph collections: Font Awesome, Octicons, Material Design Icons, and morehttps://www.nerdfonts.com/font-downloads

To add oh-my-posh for powershell use:

vim $PROFILE


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

 All themes from oh-my-posh:

Themes | Oh My PoshOh My Posh comes with many themes included out-of-the-box. Below are some screenshots of the more common themes.https://ohmyposh.dev/docs/themes

 Change the theme and change the configuration file name:

Guess you like

Origin blog.csdn.net/wtl1992/article/details/131733200