admin 管理员组文章数量: 887021
Windows terminal终端比cmd强大许多,其中可以包含cmd和powershell甚至ubuntu子系统,同时还可以进行个性化,打造更精美的终端。
安装
进入Windows自带的Microsoft Store
搜索Windows Terminal,点击安装即可(这里我已经安装过了)
下载好后可以看到如下的Windows Terminal的图标点击打开,默认打开的是powershell,在配置文件里可以修改。
可以看到我们可以选择不同的终端来操作(这里的ubuntu也是一样,在Microsoft Store上下载好之后打开,设置好root密码,再打开Windows Terminal就会发现ubuntu已经在这里边了)
配置文件修改
打开Windows Terminal上的设置,进行修改配置文件个性化。配置文件只需修改一下背景图的路径(有些图标可能会不显示,不显示的话可以自己放一个上去,设置好路径就行)即可直接替换你原来的配置文件的内容。
// 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":
{
"defaults":/*全局配置*/
{
// Put settings here that you want to apply to all profiles
// 默认打开的 Profile GUID(下面会详细介绍)
"defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
// 终端窗口默认大小
"initialCols": 120,
"initialRows": 30,
// 亮色或暗色主题,可选值 "light", "dark", "system"
"requestedTheme": "system",
// 合并标题栏和标签栏
"showTabsInTitlebar": true,
// 如果 showTabsInTitlebar 与本值同为 false 时,自动隐藏标签栏
"alwaysShowTabs": true,
// 在标题栏上显示当前活动标签页的标题
"showTerminalTitleInTitlebar": true,
// 双击选择时用于分词的字符
"wordDelimiters": " /\\()\"'-.,:;<>~!@#$%^&*|+=[]{}~?\u2502",
// 选择时复制到剪贴板
"copyOnSelect": true,
// ...
},
"list":/*每种类型terminal的详细配置*/
[
{
// Make changes here to the cmd.exe profile 关于cmd的配置
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
/*网页搜索guid生成可以获得每个程序唯一的guid,visual studio内的工具也有生成guid的功能*/
"name": "cmd",
"commandline": "cmd.exe",
/*程序位置*/
"hidden": false,
"tabTitle" : "cmd",/*名称*/
"foreground" : "#DCDCDC",/*字体颜色*/
"backgroundImage" : "F:/icon_background/2.png",/*终端背景图*/
"acrylicOpacity" : 0.75,
/*亚克力透明效果*/
"backgroundImageOpacity" : 0.25,
/*背景透明度*/
"backgroundImageStretchMode" : "fill",
"closeOnExit" : true,
"colorScheme" : "Campbell",
"cursorColor" : "#FFFFFF",
"cursorShape" : "bar",
"fontFace" : "Consolas",
"fontSize" : 11,
"historySize" : 9001,
"padding" : "0, 0, 0, 0",
"snapOnInput" : true,
"startingDirectory" : "%USERPROFILE%",
"useAcrylic" : true
},
{
// Make changes here to the Anaconda Prompt profile 关于anaconda的配置
"guid": "{FCAD2812-51E4-4E55-96AF-2F2B75628FE0}",
"name": "anaconda prompt",
"commandline": "%windir%\\System32\\cmd.exe /K D:\\Users\\KuroNeko\\Anaconda3\\Scripts\\activate.bat",
"hidden": false,
"tabTitle" : "Anaconda Prompt",/*名称*/
"foreground" : "#DCDCDC",/*字体颜色*/
"icon" : "D:/Anaconda3/Menu/anaconda-navigator.ico",/*ICO图标*/
"backgroundImage" : "F:/icon_background/1.png",/*终端背景图*/
"acrylicOpacity" : 0.75,
"backgroundImageOpacity" : 0.25,
"backgroundImageStretchMode" : "fill",
"closeOnExit" : true,
"colorScheme" : "Campbell",
"cursorColor" : "#FFFFFF",
"cursorShape" : "bar",
"fontFace" : "Consolas",
"fontSize" : 11,
"historySize" : 9001,
"padding" : "0, 0, 0, 0",
"snapOnInput" : true,
"startingDirectory" : "%USERPROFILE%",
"useAcrylic" : true
},
{
// Make changes here to the Git Bash profile 关于Git bash的配置
"guid": "{4B25BFD9-4962-49AE-8512-BBD336462BAB}",
"name": "Git Bash",
"commandline": "E:\\Git\\bin\\bash.exe",
"hidden": false,
"tabTitle" : "Git Bash",/*名称*/
"foreground" : "#DCDCDC",/*字体颜色*/
"icon" : "F:/icon_background/gitIcon.png",/*ICO图标*/
"backgroundImage" : "F:/icon_background/5.png",/*终端背景图*/
"acrylicOpacity" : 0.75,
"backgroundImageOpacity" : 0.25,
"backgroundImageStretchMode" : "fill",
"closeOnExit" : true,
"colorScheme" : "Campbell",
"cursorColor" : "#FFFFFF",
"cursorShape" : "bar",
"fontFace" : "Consolas",
"fontSize" : 11,
"historySize" : 9001,
"padding" : "0, 0, 0, 0",
"snapOnInput" : true,
"startingDirectory" : "%USERPROFILE%",
"useAcrylic" : true
},
{
// Make changes here to the powershell.exe profile
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"hidden": false,
"tabTitle" : "PowerShell",
"foreground" : "#DCDCDC",
"backgroundImage" : "F:/icon_background/1.png",
"acrylicOpacity" : 0.4,
"backgroundImageOpacity" : 0.6,
"backgroundImageStretchMode" : "fill",
"colorScheme" : "Campbell",
"cursorColor" : "#FFFFFF",
"cursorShape" : "bar",
"fontFace" : "Consolas",
"fontSize" : 11,
"historySize" : 9001,
"padding" : "0, 0, 0, 0",
"snapOnInput" : true,
"startingDirectory" : "%USERPROFILE%",
"useAcrylic" : true
},
{
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
"hidden": false,
"name": "Azure Cloud Shell",
"source": "Windows.Terminal.Azure"
},
{
"guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"hidden": false,
"name": "Ubuntu",
"source": "Windows.Terminal.Wsl",
"tabTitle" : "Ubuntu",
"foreground" : "#DCDCDC",
"backgroundImage" : "F:/icon_background/4.png",
"acrylicOpacity" : 0.4,
"backgroundImageOpacity" : 0.6,
"backgroundImageStretchMode" : "fill",
"colorScheme" : "Campbell",
"cursorColor" : "#FFFFFF",
"cursorShape" : "bar",
"fontFace" : "Consolas",
"fontSize" : 11,
"historySize" : 9001,
"padding" : "0, 0, 0, 0",
"snapOnInput" : true,
"startingDirectory" : "%USERPROFILE%",
"useAcrylic" : true
}
]
},
// Add custom color schemes to this array
"schemes": [],
// Add any keybinding overrides to this array.
// To unbind a default keybinding, set the command to "unbound"
"keybindings": []
}
最后
强烈推荐一个网站,当然很多朋友应该也知道这个网站,我的终端使用的图片都是从下面这个网站上找的。
https://wallhaven/
上面有很多好看的壁纸和背景图,不仅能用来做终端背景图,当电脑壁纸也是很不错的
选择好喜欢的图片,点击进去后点箭头指的那个选择壁纸的大小并下载即可
这就是全部内容了,如果有什么建议和问题可以在评论区给我回应,Thanks♪(・ω・)ノ
版权声明:本文标题:Windows terminal安装和配置 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/jishu/1715908283h657155.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论