windows终于有个像样的终端了 - Windows Terminal

现在windows10下的PowerShell下命令安装, 或者直接在商店里面搜索Windows Terminal并安装。

winget install --id=Microsoft.WindowsTerminal -e

大致上看了一下可以支持各种配色,除了windows拉跨的字体渲染显示比较拉跨外,其他都还不错。

搭配一下OpenSSH再配置下RSYNC基本上用起来和Linux原生环境差不多了。

 

安装完后在cmd或者powershell里面运行wt就启动了, 接下来配色更换字体等等都可以DIY定制了。

从cnblogs的KuroNekonano抄了个配色文件过来

// 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": " /\\()\"'-.,:;<>[email protected]#$%^&*|+=[]{}~?\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",/*字体颜色*/
				"icon" : "D:/KuroNekoNano_blog/themes/hexo-theme-matery/source/favicon.png",/*ICO图标*/
				"backgroundImage" : "C:/1.jpg",/*终端背景图*/
				"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:/Users/KuroNeko/Anaconda3/Menu/anaconda-navigator.ico",/*ICO图标*/
				"backgroundImage" : "C:/1.jpg",/*终端背景图*/
				"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": "D:\\Program Files (x86)\\Git\\bin\\bash.exe",
                "hidden": false,
				
				"tabTitle" : "Git Bash",/*名称*/
				"foreground" : "#DCDCDC",/*字体颜色*/
				//"icon" : "D:/图片整理/2019-07-02-10-22-00.png",/*ICO图标*/
				"backgroundImage" : "C:/1.jpg",/*终端背景图*/
				"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",
				"icon" : "D:/图片整理/%23C[KC]AMNLO31Q~N{$UVS.png",
				"backgroundImage" : "C:/1.jpg",
				"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"
            }
        ]
    },

    // 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": []
}

添加新评论 »