美化我的 Windows Powershell 全纪录
这,是Windows Terminal下的Powershell
在每天的coding中,我都要与它打交道,久而久之,我发现它有点单调,于是我萌生了美化它的想法
前置条件
Powershell 7+(必须)
https://github.com/PowerShell/PowerShell/releases/
Powershell 的设置中允许用户运行脚本(必须)
使用Set-ExecutionPolicy来进行设置,后面跟着级别(例如RemoteSigned、unrestricted)等,可以加-user来只对本用户进行修改
Windows Terminal(Win11自带,Win10必须)
scoop(可选)
备份在做美化之前,我强烈建议你进行一次备份,直接搜索创建还原点然后根据按钮提示进行备份就可以了
安装scoop(可选)使用这条命令安装scoop
1Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
如果遇到错误提 ...