美文网首页
powershell配置(1)-基本操作:主题和字体

powershell配置(1)-基本操作:主题和字体

作者: 洗洗睡吧i | 来源:发表于2020-06-11 23:35 被阅读0次

1. 安装 PowerShell 5.0 以上版本

  • win10: 已自带 V5.1;
  • win7 x64: 下载 Win7AndW2K8R2-KB3191566-x64.zip,安装;

ref: https://docs.microsoft.com/zh-cn/powershell/scripting/install/installing-windows-powershell?view=powershell-6

2. 用concfg配置主题

ref: https://github.com/lukesampson/concfg

scoop install concfg

# 设置主题
# concfg import cmd-default  # 暗色调
concfg import google-light  # 浅色调

# 列出所有预设主题
concfg presets

# 恢复原始设置
concfg clean

3. 安装字体

打开 PowerShell 窗口,右键标题栏 -> 默认值 -> 字体。

  • YaHei Consolas Hybrid: 含中文;不支持 powerline 字符

https://github.com/yakumioto/YaHei-Consolas-Hybrid-1.12

  • Jetbrains Mono: 不含中文;支持 powerline 字符
  • Cascadia Mono: 不含中文;支持 powerline 字符
  • Sarasa Gothic, 更纱黑体:含中文;支持 powerline 字符

可以用scoop安装更纱黑体:

scoop bucket add nerd-fonts
scoop install SarasaGothic

相关文章

网友评论

      本文标题:powershell配置(1)-基本操作:主题和字体

      本文链接:https://www.haomeiwen.com/subject/tcrwtktx.html