Win10:Terminal美化:修订间差异
无编辑摘要 |
无编辑摘要 |
||
(未显示同一用户的1个中间版本) | |||
第1行: | 第1行: | ||
==安装oh-my-posh== | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
# powershell这种安装方式没有试成功 | # powershell这种安装方式没有试成功 | ||
第13行: | 第14行: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
winget install JanDeDobbeleer.OhMyPosh | |||
# 修改$PROFILE | |||
oh-my-posh --init --shell pwsh --config ~\AppData\Local\Programs\oh-my-posh\themes\jandedobbeleer.omp.json | Invoke-Expression | |||
. $PROFILE | |||
# 管理员运行 | |||
set-executionpolicy remotesigned | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==安装Nerd font== | |||
可选某个Mono字体的patch版本 | |||
然后调整Windows Terminal的字体设置: | |||
<syntaxhighlight lang="json"> | |||
"profiles": | |||
{ | |||
"defaults": | |||
{ | |||
// Put settings here that you want to apply to all profiles. | |||
"fontFace": "Hack NF", | |||
"fontSize": 9 | |||
}, | |||
</syntaxhighlight> | |||
* https://docs.microsoft.com/zh-cn/windows/terminal/tutorials/custom-prompt-setup | * https://docs.microsoft.com/zh-cn/windows/terminal/tutorials/custom-prompt-setup | ||
* https://docs.microsoft.com/zh-cn/windows/package-manager/winget/#production-recommended | * https://docs.microsoft.com/zh-cn/windows/package-manager/winget/#production-recommended |
2022年1月6日 (四) 08:29的最新版本
安装oh-my-posh
# powershell这种安装方式没有试成功
# C:\Users\riguz\Documents\WindowsPowerShell\Modules\oh-my-posh
# C:\Program Files\WindowsPowerShell\Modules
# Install-Module oh-my-posh -Scope CurrentUser
Winget安装:
在AppStore里面更新App Installer
winget install JanDeDobbeleer.OhMyPosh
# 修改$PROFILE
oh-my-posh --init --shell pwsh --config ~\AppData\Local\Programs\oh-my-posh\themes\jandedobbeleer.omp.json | Invoke-Expression
. $PROFILE
# 管理员运行
set-executionpolicy remotesigned
安装Nerd font
可选某个Mono字体的patch版本
然后调整Windows Terminal的字体设置:
"profiles":
{
"defaults":
{
// Put settings here that you want to apply to all profiles.
"fontFace": "Hack NF",
"fontSize": 9
},