1. 主題美化篇
方案一:使用現成主題
直接複製大佬的主題是最方便的
- 打開設置粘貼一下上面選好的主題即可
- 打開設置
- 複製一個主題
- 粘貼在schemes標籤下。其中
name
屬性就是這個主題的名字。
注意每一個主題之間使用英文逗號隔開
4. 在default標籤下加上"colorScheme": "Wombat"
。指定默認的主題,這裏的名字選擇主題name
屬性後的名字。
5. 保存設置即可看到變化
方法二:完全自定義
配置Windows終端的一種方法(目前唯一的方法)是編輯的設置。json文件的設置。
- windows terminal 的 github主頁
- 首先我們到GitHub下載terminal的源代碼
- 然後在源代碼裏面的
doc
裏可以看到配置文件的說明
查閱手冊,修改自己想要修改的東西即可。下來我備註一下我查閱的常用的修改。
全局設置
這些設置定義啓動默認值,以及可能的應用程序範圍的設置不影響特定的終端實例。
這些全局屬性應該存在於根json對象中。
profiles
常見設置
概要文件包含打開新的WT選項卡時應用的設置。每個配置文件由一個GUID標識,幷包含許多其他字段。guid
屬性是配置文件的唯一標識符。如果多個配置文件都具有相同的guid
值,您可能會看到意想不到的情況的行爲。
// background 背景色
// `backgroundImage` 背景圖
// `backgroundImageAlignment` 背景圖對齊方式 `"center"`, `"left"`, `"top"`, `"right"`, `"bottom"`, `"topLeft"`, `"topRight"`, `"bottomLeft"`, `"bottomRight"`
// `backgroundImageOpacity` 背景圖透明度 0-1之間
// `backgroundImageStretchMode` 背景圖填充方式 `"none"`, `"fill"`, `"uniform"`, `"uniformToFill"`
// `colorScheme` 選擇一個配色方案
// `cursorColor` 設置光標的顏色
// cursorShape 光標的形狀
// `foreground` 前景色
// `historySize` 最大歷史數目
Schemes
常見設置
每個方案定義用於各種終端轉義序列的顏色值。每個模式都由name字段標識。例子包括
Property | Necessity | Type | Description |
---|---|---|---|
name |
Required | String | Name of the color scheme. |
foreground |
Required | String | Sets the foreground color of the color scheme. |
background |
Required | String | Sets the background color of the color scheme. |
selectionBackground |
Optional | String | Sets the selection background color of the color scheme. |
cursorColor |
Optional | String | Sets the cursor color of the color scheme. |
black |
Required | String | Sets the color used as ANSI black. |
blue |
Required | String | Sets the color used as ANSI blue. |
brightBlack |
Required | String | Sets the color used as ANSI bright black. |
brightBlue |
Required | String | Sets the color used as ANSI bright blue. |
brightCyan |
Required | String | Sets the color used as ANSI bright cyan. |
brightGreen |
Required | String | Sets the color used as ANSI bright green. |
brightPurple |
Required | String | Sets the color used as ANSI bright purple. |
brightRed |
Required | String | Sets the color used as ANSI bright red. |
brightWhite |
Required | String | Sets the color used as ANSI bright white. |
brightYellow |
Required | String | Sets the color used as ANSI bright yellow. |
cyan |
Required | String | Sets the color used as ANSI cyan. |
green |
Required | String | Sets the color used as ANSI green. |
purple |
Required | String | Sets the color used as ANSI purple. |
red |
Required | String | Sets the color used as ANSI red. |
white |
Required | String | Sets the color used as ANSI white. |
yellow |
Required | String | Sets the color used as ANSI yellow. |
題主的個人設置分享
- 背景圖設置
注:設置背景圖片需要關閉毛玻璃樣式,設置
"useAcrylic":false
"backgroundImage" : "T://2.jpg", # 背景圖片地址
"backgroundImageOpacity" : 0.9 #透明度
- 個人設置
defaults標籤
"defaults":
{
// Put settings here that you want to apply to all profiles.
"colorScheme": "Wombat",
"backgroundImage": "C:\\Users\\cds\\Pictures\\壁紙\\1.jpg",
"backgroundImageOpacity": 0.3
},
- 顏色主題
{
"name": "Wombat",
"black": "#000000",
"red": "#ff615a",
"green": "#b1e969",
"yellow": "#ebd99c",
"blue": "#5da9f6",
"purple": "#e86aff",
"cyan": "#82fff7",
"white": "#dedacf",
"brightBlack": "#313131",
"brightRed": "#f58c80",
"brightGreen": "#ddf88f",
"brightYellow": "#eee5b2",
"brightBlue": "#a5c7ff",
"brightPurple": "#ddaaff",
"brightCyan": "#b7fff9",
"brightWhite": "#ffffff",
"background": "#171717",
"foreground": "#dedacf"
},
- 效果
2. 常用設置篇
修改默認啓動的bash
將圖中標註的屬性進行對應即可。其中這個guid
屬性可以理解爲bash
的身份證號,將默認文件設置爲想要設置爲默認bash
的”身份證“號即可。
2.2 分屏操作
-
在新版本中,分屏快捷鍵如下:
水平分屏:
Alt + Shift + 減號
垂直分屏:
Alt + Shift + 加號
-
其它分屏
{ "command": { "action": "moveFocus", "direction":"down" }, "keys": [ "alt+down" ] },
{ "command": { "action": "moveFocus", "direction":"left" }, "keys": [ "alt+left" ] },
{ "command": { "action": "moveFocus", "direction":"right" }, "keys": [ "alt+right" ] },
{ "command": { "action": "moveFocus", "direction":"up" }, "keys": [ "alt+up" ] },
{ "command": { "action": "resizePane", "direction":"down" }, "keys": [ "alt+shift+down" ] },
{ "command": { "action": "resizePane", "direction":"left" }, "keys": [ "alt+shift+left" ] },
{ "command": { "action": "resizePane", "direction":"right" }, "keys": [ "alt+shift+right" ] },
{ "command": { "action": "resizePane", "direction":"up" }, "keys": [ "alt+shift+up" ] },