前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Windows Terminal终端美化

Windows Terminal终端美化

作者头像
听城
发布2020-02-18 16:17:08
3.8K0
发布2020-02-18 16:17:08
举报
文章被收录于专栏:杂七杂八杂七杂八杂七杂八

安装

在应用商店直接搜索 Windows Terminal

美化

点击下三角,选择setting设置,复制下面配置替换原有配置

// 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}",
    "profiles": [
        {
            // Make changes here to the powershell.exe profile
            "background": "#000000",
            "backgroundImage": "C://1.jpg",
            "backgroundImageOpacity": 0.6,
            "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
            "name": "Windows PowerShell",
            "commandline": "powershell.exe",
            "colorScheme": "AdventureTime",
            "useAcrylic": false,
            "closeOnExit": true,
            "acrylicOpacity": 0.25,
            "cursorColor": "#FFFFFF",
            "fontFace": "Delugia Nerd Font",
            "hidden": false,
            "tabTitle": "Powershell"
        },
        {
            // Make changes here to the cmd.exe profile
            "background": "#000000",
            "backgroundImage": "C://1.jpg",
            "backgroundImageOpacity": 0.5,
            "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
            "name": "cmd",
            "commandline": "cmd.exe",
            "colorScheme": "AdventureTime",
            "useAcrylic": false,
            "closeOnExit": true,
            "acrylicOpacity": 0.25,
            "cursorColor": "#FFFFFF",
            "fontFace": "Delugia Nerd Font",
            "hidden": false
        },
        {
            "background": "#000000",
            "backgroundImage": "C://1.jpg",
            "backgroundImageOpacity": 0.6,
            "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
            "colorScheme": "AdventureTime",
            "useAcrylic": false,
            "closeOnExit": true,
            "acrylicOpacity": 0.25,
            "cursorColor": "#FFFFFF",
            "fontFace": "Delugia Nerd Font",
            "hidden": false,
            "name": "Azure Cloud Shell",
            "source": "Windows.Terminal.Azure"
        }
    ],
    // Add custom color schemes to this array
    "schemes": [
        {
            "name": "3024 Day",
            "black": "#090300",
            "red": "#db2d20",
            "green": "#01a252",
            "yellow": "#fded02",
            "blue": "#01a0e4",
            "purple": "#a16a94",
            "cyan": "#b5e4f4",
            "white": "#a5a2a2",
            "brightBlack": "#5c5855",
            "brightRed": "#e8bbd0",
            "brightGreen": "#3a3432",
            "brightYellow": "#4a4543",
            "brightBlue": "#807d7c",
            "brightPurple": "#d6d5d4",
            "brightCyan": "#cdab53",
            "brightWhite": "#f7f7f7",
            "background": "#f7f7f7",
            "foreground": "#4a4543"
        },
        {
            "name": "AdventureTime",
            "black": "#050404",
            "red": "#bd0013",
            "green": "#4ab118",
            "yellow": "#e7741e",
            "blue": "#0f4ac6",
            "purple": "#665993",
            "cyan": "#70a598",
            "white": "#f8dcc0",
            "brightBlack": "#4e7cbf",
            "brightRed": "#fc5f5a",
            "brightGreen": "#9eff6e",
            "brightYellow": "#efc11a",
            "brightBlue": "#1997c6",
            "brightPurple": "#9b5953",
            "brightCyan": "#c8faf4",
            "brightWhite": "#f6f5fb",
            "background": "#1f1d45",
            "foreground": "#f8dcc0"
        }
    ],
    // Add any keybinding overrides to this array.
    // To unbind a default keybinding, set the command to "unbound"
    "keybindings": []
}

修改配色

在该GitHub地址有不同的配色方案,将其加入到上面配置的schemes中,修改colorScheme中配色名为新加入配色的name https://github.com/mbadolato/iTerm2-Color-Schemes/tree/master/windowsterminal

power shell美化

  • 安装Chocolatey Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
  • 安装Oh-my-posh
# 下面命令挨个执行
choco install ConEmu
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
  • 设置Profile脚本 if (!(Test-Path -Path $PROFILE )) { New-Item -Type File -Path $PROFILE -Force }
  • 打开生成的文件,加入下面代码
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 安装
  • 美化
  • 修改配色
  • power shell美化
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档