windowsterminal简单美化
779 字
4 分钟
windowsterminal简单美化
因为最近使用HEXO的缘故,使用windows下的CMD的频率比较多
奈何太简陋 , windows terminal 就成了不二选择
当然和linux没法比
话不多说直接贴源码
// This file was initially generated by Windows Terminal 1.4.3243.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": "{xxxxxxxxxxxxxxxxxx}", //应该是唯一值 // You can add more global application settings here. // To learn more about global settings, visit https://aka.ms/terminal-global-settings // 主题设置 "theme": "dark", // --------- 这里有改动 ------------- "dark/light/system" 就标题栏有变化.... // 启动设置 // 1、以最大化方式启动 "launchMode": "default", // "maximized" // 2、启动位置 "initialPosition": "100,50", // 3、首次启动时的列 "initialCols": 100, // 4、首次启动时的行 "initialRows": 30, // If enabled, selections are automatically copied to your clipboard. "copyOnSelect": true, // --- 这里有改动 ----默认 false , 选中复制,右键粘贴 // If enabled, formatted data is also copied to your clipboard "copyFormatting": false, // 滚动速度 "rowsToScroll": "system", // 这是滚动鼠标滚轮一次滚动的行数 默认 "system" // 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": { // 初始目录设置 "startingDirectory": "E:/", // 文本设置 // 字体 "fontFace": "FantasqueSansMono", // 字体大小 "fontSize": 13, // 边距 "padding": "3,3,3,3", // 消除文本锯齿 "antialiasingMode": "cleartype", // 颜色设置 // 配色方案, 配色方案是在 schemes 对象中定义的, 有几个预先定义的方案, 查看 https://docs.microsoft.com/zh-cn/windows/terminal/customize-settings/color-schemes "colorScheme": "Solarized Light", // One Half Dark, One Half Light, Solarized Dark, Solarized Light, // Acrylic 设置 "useAcrylic": true, // Acrylic 不透明度 "acrylicOpacity": 0.6, // // 背景图像设置 "backgroundImage": "E:/c/1/3.jpg", // // 背景图像拉伸模式 "none"、"fill"、"uniform"、"uniformToFill" // "backgroundImageStretchMode": "uniform", // // 背景图像不透明度 "backgroundImageOpacity": 0.7, // 历史记录可现实行数 "historySize": 9001 // default 9001 }, "list": [ { // Make changes here to the powershell.exe profile. "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "name": "Windows PowerShell", "commandline": "powershell.exe", "hidden": false }, { // Make changes here to the cmd.exe profile. "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "name": "命令提示符", "commandline": "cmd.exe", "hidden": false }, { "guid": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}", "hidden": false, "name": "Ubuntu-18.04", "source": "Windows.Terminal.Wsl" }, { "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", "hidden": false, "name": "Azure Cloud Shell", "source": "Windows.Terminal.Azure" }, { "guid": "{4d4cc780-cacb-5b6f-a183-29b5f6cdcd23}", "hidden": false, "name": "CentOS", "source": "Windows.Terminal.Wsl" } ] }, // Add custom color schemes to this array. // To learn more about color schemes, visit https://aka.ms/terminal-color-schemes // 自定义配色方案,默认 "schemes": [],
// Add custom keybindings to this array. // To unbind a key combination from your defaults.json, set the command to "unbound". // To learn more about keybindings, visit https://aka.ms/terminal-keybindings "keybindings": [ // Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json. // These two lines additionally bind them to Ctrl+C and Ctrl+V. // To learn more about selection, visit https://aka.ms/terminal-selection { "command": { "action": "copy", "singleLine": false }, "keys": "ctrl+c" }, { "command": "paste", "keys": "ctrl+v" }, // Press Ctrl+Shift+F to open the search box { "command": "find", "keys": "ctrl+shift+f" }, // Press Alt+Shift+D to open a new pane. // - "split": "auto" makes this pane open in the direction that provides the most surface area. // - "splitMode": "duplicate" makes the new pane use the focused pane's profile. // To learn more about panes, visit https://aka.ms/terminal-panes { "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+d" }, // 自定义快捷键 { "command": "closePane", "keys": "ctrl+w" }, { "command": "closeTab", "keys": "ctrl+shift+w" } ]}文章分享
如果这篇文章对你有帮助,欢迎分享给更多人!
windowsterminal简单美化
http://blog.diudiudevil.cn/posts/windows-terminal-beautification-basics/ 最后更新于 2020-12-20,距今已过 1910 天
部分内容可能已过时
相关文章 智能推荐
1
微软商店登陆怎么一直转圈该怎么办?
问题处理 2020-11-22
2
创业复盘思考2026
复盘思考 创业思考复盘
3
Oracle入门笔记 SQLPlus基本使用
学习笔记 2020-11-16
4
Oracle入门笔记 - 基础概念
学习笔记 2020-11-08
5
Docker入门笔记2
学习笔记 2020-11-03
随机文章 随机推荐