windows terminal

安装

直接Microsoft Store中搜索“Windows Terminal”就可以
安装Cascadia Code字体:https://github.com/microsoft/cascadia-code/releases
使用 PowerShell,安装工具:

# 安装工具posh-git oh-my-posh psreadline
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
Install-Module -Name PSReadLine -Scope CurrentUser -Force -SkipPublisherCheck

创建powershell配置脚本

if (!(Test-Path -Path $PROFILE)) {
  New-Item -ItemType File -Path $PROFILE -Force
}

在 PowerShell 配置文件($PROFILE)中,将以下内容添加到文件的末尾:

Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox

修改ps脚本运行权限

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

修改Windows Terminal的配置文件settings.json
添加 "fontFace": "Cascadia Code PL"

{
    // Make changes here to the powershell.exe profile.
    "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
    "name": "Windows PowerShell",
    "commandline": "powershell.exe",
    "fontFace": "Cascadia Code PL",
    "hidden": false
},
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值