[差生文具多]Windows Terminal改造美化

安装Nerd Font

访问Nerd Font下载需要的字体
推荐下载Caskaydia Cove Nerd Font
01下载Nerd Font

下载完成之后解压,安装
02安装字体

安装 Oh My Posh for PowerShell

多种安装方式,推荐在powershell下直接用使用命令安装

Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://ohmyposh.dev/install.ps1'))

安装期间如果有提示,选择Y或者A

选择并应用主题

可以在ohmyposh主题查看并且选择自己喜欢的主题
在powershell中输入打开powershell的配置脚本

notepad $PROFILE

在新打开的文件中末尾输入以下内容

oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\space.omp.json" | Invoke-Expression
Import-Module -Name Terminal-Icons

其中,space.omp.json为主题的配置文件,将space替换为你选择的主题

使用 Terminal-Icons 添加缺少的文件夹或文件图标

在powershell中输入

Install-Module -Name Terminal-Icons -Repository PSGallery

安装期间如果有提示,选择Y或者A
等待安装完成

配置wt

打开wt设置
03wt设置

选择默认值-外观(也可以直接单独更改powershell的字体)
04更改字体

设置quake切换快捷键,这里设置为ctrl+space
05更改快捷键

最后其他设置按照自己的喜好进行配置
附上我的wt配置文件,直接覆盖原始配置文件即可

{
    "$help": "https://aka.ms/terminal-documentation",
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "actions": 
    [
        {
            "command": 
            {
                "action": "copy",
                "singleLine": false
            },
            "keys": "ctrl+c"
        },
        {
            "command": "paste",
            "keys": "ctrl+v"
        },
        {
            "command": "find",
            "keys": "ctrl+shift+f"
        },
        {
            "command": 
            {
                "action": "splitPane",
                "split": "auto",
                "splitMode": "duplicate"
            },
            "keys": "alt+shift+d"
        },
        {
            "command": 
            {
                "action": "quakeMode"
            },
            "keys": "ctrl+space"
        },
        {
            "command": "unbound",
            "keys": "win+sc(41)"
        }
    ],
    "copyFormatting": "none",
    "copyOnSelect": true,
    "defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
    "disabledProfileSources": 
    [
        "Windows.Terminal.Azure"
    ],
    "focusFollowMouse": true,
    "initialCols": 90,
    "initialRows": 30,
    "minimizeToNotificationArea": true,
    "profiles": 
    {
        "defaults": 
        {
            "antialiasingMode": "cleartype",
            "colorScheme": "MaterialDark",
            "cursorColor": "#000000",
            "cursorShape": "bar",
            "experimental.retroTerminalEffect": false,
            "font": 
            {
                "face": "CaskaydiaCove Nerd Font Mono"
            },
            "opacity": 50,
            "snapOnInput": true,
            "useAcrylic": true
        },
        "list": 
        [
            {
                "commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -Nologo",
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "hidden": false,
                "name": "Windows PowerShell"
            },
            {
                "commandline": "%SystemRoot%\\System32\\cmd.exe",
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "hidden": false,
                "name": "\u547d\u4ee4\u63d0\u793a\u7b26"
            },
            {
                "commandline": "%UserProfile%\\AppData\\Local\\Microsoft\\WindowsApps\\Microsoft.PowerShell_8wekyb3d8bbwe\\pwsh.exe\" --Nologo",
                "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
                "hidden": false,
                "name": "PowerShell",
                "source": "Windows.Terminal.PowershellCore"
            }
        ]
    },
    "schemes": 
    [
        {
            "background": "#0C0C0C",
            "black": "#0C0C0C",
            "blue": "#0037DA",
            "brightBlack": "#767676",
            "brightBlue": "#3B78FF",
            "brightCyan": "#61D6D6",
            "brightGreen": "#16C60C",
            "brightPurple": "#B4009E",
            "brightRed": "#E74856",
            "brightWhite": "#F2F2F2",
            "brightYellow": "#F9F1A5",
            "cursorColor": "#FFFFFF",
            "cyan": "#3A96DD",
            "foreground": "#CCCCCC",
            "green": "#13A10E",
            "name": "Campbell",
            "purple": "#881798",
            "red": "#C50F1F",
            "selectionBackground": "#FFFFFF",
            "white": "#CCCCCC",
            "yellow": "#C19C00"
        },
        {
            "background": "#012456",
            "black": "#0C0C0C",
            "blue": "#0037DA",
            "brightBlack": "#767676",
            "brightBlue": "#3B78FF",
            "brightCyan": "#61D6D6",
            "brightGreen": "#16C60C",
            "brightPurple": "#B4009E",
            "brightRed": "#E74856",
            "brightWhite": "#F2F2F2",
            "brightYellow": "#F9F1A5",
            "cursorColor": "#FFFFFF",
            "cyan": "#3A96DD",
            "foreground": "#CCCCCC",
            "green": "#13A10E",
            "name": "Campbell Powershell",
            "purple": "#881798",
            "red": "#C50F1F",
            "selectionBackground": "#FFFFFF",
            "white": "#CCCCCC",
            "yellow": "#C19C00"
        },
        {
            "background": "#EAEAEA",
            "black": "#212121",
            "blue": "#134EB2",
            "brightBlack": "#424242",
            "brightBlue": "#54A4F3",
            "brightCyan": "#26BBD1",
            "brightGreen": "#7ABA3A",
            "brightPurple": "#AA4DBC",
            "brightRed": "#E83B3F",
            "brightWhite": "#D9D9D9",
            "brightYellow": "#FFEA2E",
            "cursorColor": "#FFFFFF",
            "cyan": "#0E717C",
            "foreground": "#232322",
            "green": "#457B24",
            "name": "Material",
            "purple": "#560088",
            "red": "#B7141F",
            "selectionBackground": "#FFFFFF",
            "white": "#EFEFEF",
            "yellow": "#F6981E"
        },
        {
            "background": "#232322",
            "black": "#212121",
            "blue": "#134EB2",
            "brightBlack": "#424242",
            "brightBlue": "#54A4F3",
            "brightCyan": "#26BBD1",
            "brightGreen": "#7ABA3A",
            "brightPurple": "#AA4DBC",
            "brightRed": "#E83B3F",
            "brightWhite": "#D9D9D9",
            "brightYellow": "#FFEA2E",
            "cursorColor": "#FFFFFF",
            "cyan": "#0E717C",
            "foreground": "#E5E5E5",
            "green": "#457B24",
            "name": "MaterialDark",
            "purple": "#560088",
            "red": "#B7141F",
            "selectionBackground": "#FFFFFF",
            "white": "#EFEFEF",
            "yellow": "#F6981E"
        },
        {
            "background": "#0F111A",
            "black": "#546E7A",
            "blue": "#82AAFF",
            "brightBlack": "#546E7A",
            "brightBlue": "#82AAFF",
            "brightCyan": "#89DDFF",
            "brightGreen": "#C3E88D",
            "brightPurple": "#C792EA",
            "brightRed": "#FF5370",
            "brightWhite": "#FFFFFF",
            "brightYellow": "#FFCB6B",
            "cursorColor": "#FFFFFF",
            "cyan": "#89DDFF",
            "foreground": "#8F93A2",
            "green": "#C3E88D",
            "name": "MaterialOcean",
            "purple": "#C792EA",
            "red": "#FF5370",
            "selectionBackground": "#FFFFFF",
            "white": "#FFFFFF",
            "yellow": "#FFCB6B"
        },
        {
            "background": "#282C34",
            "black": "#282C34",
            "blue": "#61AFEF",
            "brightBlack": "#5A6374",
            "brightBlue": "#61AFEF",
            "brightCyan": "#56B6C2",
            "brightGreen": "#98C379",
            "brightPurple": "#C678DD",
            "brightRed": "#E06C75",
            "brightWhite": "#DCDFE4",
            "brightYellow": "#E5C07B",
            "cursorColor": "#FFFFFF",
            "cyan": "#56B6C2",
            "foreground": "#DCDFE4",
            "green": "#98C379",
            "name": "One Half Dark",
            "purple": "#C678DD",
            "red": "#E06C75",
            "selectionBackground": "#FFFFFF",
            "white": "#DCDFE4",
            "yellow": "#E5C07B"
        },
        {
            "background": "#FAFAFA",
            "black": "#383A42",
            "blue": "#0184BC",
            "brightBlack": "#4F525D",
            "brightBlue": "#61AFEF",
            "brightCyan": "#56B5C1",
            "brightGreen": "#98C379",
            "brightPurple": "#C577DD",
            "brightRed": "#DF6C75",
            "brightWhite": "#FFFFFF",
            "brightYellow": "#E4C07A",
            "cursorColor": "#4F525D",
            "cyan": "#0997B3",
            "foreground": "#383A42",
            "green": "#50A14F",
            "name": "One Half Light",
            "purple": "#A626A4",
            "red": "#E45649",
            "selectionBackground": "#FFFFFF",
            "white": "#FAFAFA",
            "yellow": "#C18301"
        },
        {
            "background": "#002B36",
            "black": "#002B36",
            "blue": "#268BD2",
            "brightBlack": "#073642",
            "brightBlue": "#839496",
            "brightCyan": "#93A1A1",
            "brightGreen": "#586E75",
            "brightPurple": "#6C71C4",
            "brightRed": "#CB4B16",
            "brightWhite": "#FDF6E3",
            "brightYellow": "#657B83",
            "cursorColor": "#FFFFFF",
            "cyan": "#2AA198",
            "foreground": "#839496",
            "green": "#859900",
            "name": "Solarized Dark",
            "purple": "#D33682",
            "red": "#DC322F",
            "selectionBackground": "#FFFFFF",
            "white": "#EEE8D5",
            "yellow": "#B58900"
        },
        {
            "background": "#FDF6E3",
            "black": "#002B36",
            "blue": "#268BD2",
            "brightBlack": "#073642",
            "brightBlue": "#839496",
            "brightCyan": "#93A1A1",
            "brightGreen": "#586E75",
            "brightPurple": "#6C71C4",
            "brightRed": "#CB4B16",
            "brightWhite": "#FDF6E3",
            "brightYellow": "#657B83",
            "cursorColor": "#002B36",
            "cyan": "#2AA198",
            "foreground": "#657B83",
            "green": "#859900",
            "name": "Solarized Light",
            "purple": "#D33682",
            "red": "#DC322F",
            "selectionBackground": "#FFFFFF",
            "white": "#EEE8D5",
            "yellow": "#B58900"
        },
        {
            "background": "#000000",
            "black": "#000000",
            "blue": "#3465A4",
            "brightBlack": "#555753",
            "brightBlue": "#729FCF",
            "brightCyan": "#34E2E2",
            "brightGreen": "#8AE234",
            "brightPurple": "#AD7FA8",
            "brightRed": "#EF2929",
            "brightWhite": "#EEEEEC",
            "brightYellow": "#FCE94F",
            "cursorColor": "#FFFFFF",
            "cyan": "#06989A",
            "foreground": "#D3D7CF",
            "green": "#4E9A06",
            "name": "Tango Dark",
            "purple": "#75507B",
            "red": "#CC0000",
            "selectionBackground": "#FFFFFF",
            "white": "#D3D7CF",
            "yellow": "#C4A000"
        },
        {
            "background": "#FFFFFF",
            "black": "#000000",
            "blue": "#3465A4",
            "brightBlack": "#555753",
            "brightBlue": "#729FCF",
            "brightCyan": "#34E2E2",
            "brightGreen": "#8AE234",
            "brightPurple": "#AD7FA8",
            "brightRed": "#EF2929",
            "brightWhite": "#EEEEEC",
            "brightYellow": "#FCE94F",
            "cursorColor": "#000000",
            "cyan": "#06989A",
            "foreground": "#555753",
            "green": "#4E9A06",
            "name": "Tango Light",
            "purple": "#75507B",
            "red": "#CC0000",
            "selectionBackground": "#FFFFFF",
            "white": "#D3D7CF",
            "yellow": "#C4A000"
        },
        {
            "background": "#000000",
            "black": "#000000",
            "blue": "#000080",
            "brightBlack": "#808080",
            "brightBlue": "#0000FF",
            "brightCyan": "#00FFFF",
            "brightGreen": "#00FF00",
            "brightPurple": "#FF00FF",
            "brightRed": "#FF0000",
            "brightWhite": "#FFFFFF",
            "brightYellow": "#FFFF00",
            "cursorColor": "#FFFFFF",
            "cyan": "#008080",
            "foreground": "#C0C0C0",
            "green": "#008000",
            "name": "Vintage",
            "purple": "#800080",
            "red": "#800000",
            "selectionBackground": "#FFFFFF",
            "white": "#C0C0C0",
            "yellow": "#808000"
        }
    ]
}

设置开机启动(可选)

在计划任务中创建一个开机任务
08计划任务3
06计划任务1
07计划任务2
09计划任务4
10计划任务5

效果

win+r唤出运行窗口,输入wt -w _quake
11运行
12效果
14效果2
不使用时候,用之前设置的快捷键切换到后台,使用时候在切到前台

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×