- A+
所属分类:工具收集
软件介绍
Windows Terminal 是一个全新的、流行的、功能强大的命令行终端工具。包含很多来社区呼声很高的特性,例如:多 Tab 支持、富文本、多语言支持、可配置、主题和样式,支持 emoji 和基于 GPU 运算的文本渲染等等。同时该终端依然符合我们的目标和要求,以确保它保持快速、高效,并且不会消耗大量内存和电源。
美化后
下载地址
微软商店
安装美化主题
管理员方式打开powershell
1 2 3 |
Set-ExecutionPolicy Bypass Install-Module posh-git -Scope CurrentUser Install-Module oh-my-posh -Scope CurrentUser |
Posh-Git将Git状态信息添加到提示,并为Git命令、参数、远程和分支名称添加 tab 自动补全。Oh-My-Posh为PowerShell提示符提供主题功能。
如果使用的是PowerShell Core,请安装PSReadline:
1 |
Install-Module -Name PSReadLine -Scope CurrentUser -Force -SkipPublisherCheck |
然后PowerShell命令行执行:
1 2 |
if (!(Test-Path -Path $PROFILE )) { New-Item -Type File -Path $PROFILE -Force } notepad $PROFILE |
会打开如下记事本,将下面的代码配置到记事本中保存:
1 2 3 |
Import-Module posh-git Import-Module oh-my-posh Set-PoshPrompt Paradox |
安装 Powerline 字体
Powerline提供自定义的命令提示符体验,提供Git状态颜色编码和提示符,不然很多符号都是乱码。
下载地址:
1 |
https://gitee.com/felord/fonts |
自定义配置文件
附上我修改好的配置文件
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
{ "$schema": "https://aka.ms/terminal-profiles-schema", "defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", // You can add more global application settings here. // To learn more about global settings, visit https://aka.ms/terminal-global-settings // If enabled, selections are automatically copied to your clipboard. "copyOnSelect": false, // If enabled, formatted data is also copied to your clipboard "copyFormatting": false, // 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 <code>wt.exe -p xxx // To learn more about profiles, visit https://aka.ms/terminal-profile-settings "profiles": { "defaults": { // Put settings here that you want to apply to all profiles. "colorScheme": "Banana Blueberry", "background": "#191323", //背景颜色,PS默认为蓝色 "closeOnExit": true, //关闭窗口的时候退出所有挂载的程序 "commandline": "powershell.exe", //此处终端打开PS "cursorColor": "#FFFFFF", //光标颜色 "cursorShape": "bar", //光标形状(默认为bar,即条状) "fontFace": "DejaVu Sans Mono for Powerline", "fontSize": 12, "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", //唯一标识符,随机生成 "historySize": 9001, //缓存大小 "name": "PowerShell", //在下拉菜单里显示的名称 "padding": "0, 0, 0, 0", //内容的边框距,默认填充全部空间 "snapOnInput": true, //输入的时候自动滚动到输入位置 "startingDirectory": "%USERPROFILE%" ,//初始工作目录,默认为用户目录 "acrylicOpacity": 0.8 ,//Acrylic 不透明度 "backgroundImageOpacity": 0.5, //背景图像不透明度 //"backgroundImage": "C:\\Users\\DustinWinFiles\\Pictures\\colorful.jpg", //背景图像设置 }, "list": [ { // Make changes here to the powershell.exe profile. "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "name": "Windows PowerShell", "commandline": "powershell.exe", "hidden": false, // "backgroundImage": "G:\\壁纸\\Firewatch.jpg", //背景图像设置 "backgroundImage":"G:\\壁纸\\cd325507a551fb32594d6414604b8ef3.jpg", "icon": "ms-appx:///ProfileIcons/pwsh-preview.scale-100.png", //图标 "acrylicOpacity": 0.5 ,//Acrylic 不透明度 "backgroundImageOpacity": 0.5, //背景图像不透明度 "tabTitle": "Powershell", //在选项卡上显示的名称 }, { // Make changes here to the cmd.exe profile. "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "name": "cmd", "commandline": "cmd.exe", "hidden": false, "backgroundImage":"G:\\壁纸\\d77ff7e8aa40f2edab9b3da4fc477e1a.jpg", "icon": "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png", //图标 "tabTitle": "cmd", //在选项卡上显示的名称 }, //Azure 隐藏掉 { "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", "hidden": true, "name": "Azure Cloud Shell", "source": "Windows.Terminal.Azure" } ] }, // Add custom color schemes to this array. // To learn more about color schemes, visit https://aka.ms/terminal-color-schemes "schemes": [ { "name": "Monokai Night", "background": "#1f1f1f", "foreground": "#f8f8f8", "black": "#1f1f1f", "blue": "#6699df", "cyan": "#e69f66", "green": "#a6e22e", "purple": "#ae81ff", "red": "#f92672", "white": "#f8f8f2", "yellow": "#e6db74", "brightBlack": "#75715e", "brightBlue": "#66d9ef", "brightCyan": "#e69f66", "brightGreen": "#a6e22e", "brightPurple": "#ae81ff", "brightRed": "#f92672", "brightWhite": "#f8f8f2", "brightYellow": "#e6db74" }, { "name": "Banana Blueberry", "black": "#17141f", "red": "#ff6b7f", "green": "#00bd9c", "yellow": "#e6c62f", "blue": "#22e8df", "purple": "#dc396a", "cyan": "#56b6c2", "white": "#f1f1f1", "brightBlack": "#495162", "brightRed": "#fe9ea1", "brightGreen": "#98c379", "brightYellow": "#f9e46b", "brightBlue": "#91fff4", "brightPurple": "#da70d6", "brightCyan": "#bcf3ff", "brightWhite": "#ffffff", "background": "#191323", "foreground": "#cccccc" } ], // 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": [ { "command": "closeWindow", "keys": "alt+f4" }, // 关闭窗口 { "command": "find", "keys": "ctrl+f" }, // 查找 { "command": "openNewTabDropdown", "keys": "ctrl+shift+space" },// 打开下拉菜单 { "command": "openSettings", "keys": "ctrl+," }, // 打开设置文件 { "command": { "action": "openSettings", "target": "defaultsFile" }, "keys": "ctrl+alt+," }, // 打开设置文件 { "command": "toggleFullscreen", "keys": "alt+enter" }, // 切换全屏 { "command": "toggleFullscreen", "keys": "f11" }, // 切换全屏 { "command": "toggleFocusMode", "keys": "shift+f11" }, // 对焦模式 { "command": "toggleAlwaysOnTop", "keys": "alt+shift+tab" }, // 始终处于顶部模式 { "command": { "action": "sendInput", "input": "\u001b[A" }, "keys": "" },//向shell发送任意文本输入 { "command": "closeTab", "keys": "ctrl+alt+f4" }, // 关闭选项卡 { "command": "closeOtherTabs" },//关闭其他标签 { "command": "closeTabsAfter" },//关闭下一个标签 { "command": "duplicateTab", "keys": "ctrl+shift+d" }, // 复制选项卡 { "command": "newTab", "keys": "ctrl+shift+t" }, // 新建选项卡 { "command": { "action": "newTab", "index": 0 }, "keys": "ctrl+shift+1" }, // 新建选项卡 { "command": { "action": "newTab", "index": 1 }, "keys": "ctrl+shift+2" }, // 新建选项卡 { "command": { "action": "newTab", "index": 2 }, "keys": "ctrl+shift+3" }, // 新建选项卡 { "command": { "action": "newTab", "index": 3 }, "keys": "ctrl+shift+4" }, // 新建选项卡 { "command": { "action": "newTab", "index": 4 }, "keys": "ctrl+shift+5" }, // 新建选项卡 { "command": { "action": "newTab", "index": 5 }, "keys": "ctrl+shift+6" }, // 新建选项卡 { "command": { "action": "newTab", "index": 6 }, "keys": "ctrl+shift+7" }, // 新建选项卡 { "command": { "action": "newTab", "index": 7 }, "keys": "ctrl+shift+8" }, // 新建选项卡 { "command": { "action": "newTab", "index": 8 }, "keys": "ctrl+shift+9" }, // 新建选项卡 { "command": "nextTab", "keys": "ctrl+tab" }, // 打开下一个选项卡 { "command": "prevTab", "keys": "ctrl+shift+tab" }, // 打开上一个选项卡 { "command": "tabSearch", "keys": ""},//选项卡搜索 { "command": { "action": "switchToTab", "index": 0 }, "keys": "ctrl+alt+1" }, // 打开特定的选项卡 { "command": { "action": "switchToTab", "index": 1 }, "keys": "ctrl+alt+2" }, // 打开特定的选项卡 { "command": { "action": "switchToTab", "index": 2 }, "keys": "ctrl+alt+3" }, // 打开特定的选项卡 { "command": { "action": "switchToTab", "index": 3 }, "keys": "ctrl+alt+4" }, // 打开特定的选项卡 { "command": { "action": "switchToTab", "index": 4 }, "keys": "ctrl+alt+5" }, // 打开特定的选项卡 { "command": { "action": "switchToTab", "index": 5 }, "keys": "ctrl+alt+6" }, // 打开特定的选项卡 { "command": { "action": "switchToTab", "index": 6 }, "keys": "ctrl+alt+7" }, // 打开特定的选项卡 { "command": { "action": "switchToTab", "index": 7 }, "keys": "ctrl+alt+8" }, // 打开特定的选项卡 { "command": { "action": "switchToTab", "index": 8 }, "keys": "ctrl+alt+9" }, // 打开特定的选项卡 { "command": "renameTab", "keys": "ctrl+c" }, // 重命名选项卡 { "command": { "action": "renameTab", "title": null }, "keys": "" },//重置选项卡名称 { "command": "openTabRenamer", "keys": "ctrl+alt+a" },//打开tab重命名 { "command": { "action": "setTabColor", "color": "#ffffff" }, "keys": "ctrl+a" }, // 设置选项卡颜色 { "command": { "action": "setTabColor", "color": null }, "keys": "" },//重置选项卡颜色 { "command": "openTabColorPicker", "keys": "ctrl+b" }, // 打开选项卡颜色选取器 { "command": "closePane", "keys": "ctrl+shift+w" }, // 关闭窗格 { "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": "togglePaneZoom" },//缩放到窗格 { "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" }, // 调整窗格大小 { "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+d" }, // 拆分窗格 { "command": { "action": "splitPane", "split": "horizontal"}, "keys": "alt+shift+-" }, // 拆分窗格 { "command": { "action": "splitPane", "split": "vertical"}, "keys": "alt+shift+plus" }, // 拆分窗格 { "command": { "action": "copy", "singleLine": false }, "keys": "ctrl+c" }, // 复制 { "command": { "action": "copy", "singleLine": false }, "keys": "ctrl+shift+c" }, // 复制 { "command": { "action": "copy", "singleLine": false }, "keys": "ctrl+insert" }, // 复制 { "command": "paste", "keys": "ctrl+v" }, // 粘贴 { "command": "paste", "keys": "ctrl+shift+v" }, // 粘贴 { "command": "paste", "keys": "shift+insert" }, // 粘贴 { "command": "scrollUp", "keys": "ctrl+shift+up" }, // 向上滚动 { "command": "scrollDown", "keys": "ctrl+shift+down" }, // 向下滚动 { "command": "scrollUpPage", "keys": "ctrl+shift+pgup" }, // 向上滚动一整页 { "command": "scrollDownPage", "keys": "ctrl+shift+pgdn" }, // 向下滚动一整页 { "command": { "action": "adjustFontSize", "delta": 1 }, "keys": "ctrl+=" }, // 调整字号 { "command": { "action": "adjustFontSize", "delta": -1 }, "keys": "ctrl+-" }, // 调整字号 { "command": "resetFontSize", "keys": "ctrl+0" }, // 重置字号 { "command": "toggleRetroEffect", "keys": "ctrl+d" }// 切换复古终端效果 //{ "command": "unbound", "keys": "ctrl+q" } // 取消绑定键 ] } |
- 我的微信
- 这是我的微信扫一扫
- 我的微信公众号
- 我的微信公众号扫一扫