美化Windows Terminal

本文介绍了如何美化Windows Terminal,包括安装补丁字体FiraCode Nerd Font,从Microsoft Store安装Windows Terminal,配置settings.json文件选择主题,以及使用特定代码美化PowerShell。
摘要由CSDN通过智能技术生成

美化Windows Terminal

效果图

image-20201130205921698

安装补丁字体

不安装无法显示图标

使用的是FiraCode Nerd Font字体,在网站下载改字体:Nerd Fonts - Iconic font aggregator, glyphs/icons collection, & fonts patcher

安装Windows Terminal

Microsoft Store(微软商店),搜名字安装。

点开设置

image-20201130205956424

配置settings.json文件,可以全选复制粘贴。

主要是修改"profiles": { "defaults": { "schemes": [ 的东西。

其中schemes可以在>_TerminalSplash - Windows Terminal Themes 里找主题,找好后修改”defaults“中的"colorScheme"的值。

具体配置看代码:

// This file was initially generated by Windows Terminal 1.0.1401.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
   
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
    // Launch Settings
    "initialCols": 100,
    "initialRows": 25,
    "launchMode": "default",
    // Selection
    "copyOnSelect": false,
    "copyFormatting": false,
    // Tab UI
    "alwaysShowTabs": true,
    "showTabsInTitlebar": true,
    "showTerminalTitleInTitlebar": true,
    "tabWidthMode": "equal",
    // A profile specifies a command to execute paired with information about how it should look and feel.
    // Each one of them will appear in the 'New Tab' dropdown,
    //   and can be invoked from the commandline with `wt.exe -p xxx`
    // To learn more about profiles, visit https://aka.ms/terminal-profile-settings
    "profiles": {
   
        "defaults": {
   
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值