ilyfairy / kawaiifairy.github.io

0 stars 0 forks source link

PowerShell美化 #3

Open ilyfairy opened 2 years ago

ilyfairy commented 2 years ago

http://blog.233.pink/posts/pwshbeautification/

powershell美化 效果 最终效果 终端 WindowsTerminal & PowerShell 首先下载 Windows Terminal 和 PowerShell最新版本 windows terminal美化 编辑profiles->defaults节点 "backgroundImage": "test.png", //背景图片路径 "backgroundImageOpacity": 0.15, //背景透明度 "font": { "face": "Cascadia Code PL", //字体 "size": 12 } pwsh配置 输入$PROFILE查看pwsh的配置文件路径 编辑$PROFILE 添加以下代码启用历史记录和智能提示高亮 Set-PSReadLineOption -PredictionSource History Set-PSReadLineOption -ShowToolTips pwsh快捷键 Ctrl+空格 显示候选命令 效果 scoop 和winget差不多的包管理工具

到pwsh里输入以下代码安装scoop Set-ExecutionPolicy RemoteSigned -scope CurrentUser Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh') 编辑$PROFILE 添加以下代码每次自动启动Starship

Invoke-Expression (&starship init powershell) Starship 安装: scoop install starship

Kira-Pgr commented 2 years ago

终端必须品:花里胡哨 雾)