我的 Windows Terminal 配置
发布于: 2020 年 05 月 24 日
安装
配置
Windows Terminal 配置
// This file was initially generated by Windows Terminal 1.0.1401.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": "{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": true,
// 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 `wt.exe -p xxx`
// To learn more about profiles, visit https://aka.ms/terminal-profile-settings
"theme": "dark",
"profiles": {
"defaults": {
// Put settings here that you want to apply to all profiles.
"fontFace": "Cascadia Code PL",
"colorScheme": "Batman"
},
"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": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"hidden": false,
"name": "Ubuntu ⚡",
"source": "Windows.Terminal.Wsl",
"colorScheme": "Tango Dark"
},
{
"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": "cyberpunk",
"black": "#000000",
"red": "#ff7092",
"green": "#00fbac",
"yellow": "#fffa6a",
"blue": "#00bfff",
"purple": "#df95ff",
"cyan": "#86cbfe",
"white": "#ffffff",
"brightBlack": "#000000",
"brightRed": "#ff8aa4",
"brightGreen": "#21f6bc",
"brightYellow": "#fff787",
"brightBlue": "#1bccfd",
"brightPurple": "#e6aefe",
"brightCyan": "#99d6fc",
"brightWhite": "#ffffff",
"background": "#332a57",
"foreground": "#e5e5e5"
},
{
"name": "Batman",
"black": "#1b1d1e",
"red": "#e6dc44",
"green": "#c8be46",
"yellow": "#f4fd22",
"blue": "#737174",
"purple": "#747271",
"cyan": "#62605f",
"white": "#c6c5bf",
"brightBlack": "#505354",
"brightRed": "#fff78e",
"brightGreen": "#fff27d",
"brightYellow": "#feed6c",
"brightBlue": "#919495",
"brightPurple": "#9a9a9d",
"brightCyan": "#a3a3a6",
"brightWhite": "#dadbd6",
"background": "#1b1d1e",
"foreground": "#6f6f6f"
}
],
// 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"
}
]
}
复制代码
PowerShell 配置
# 安装 oh-my-posh
> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
> Install-Module posh-git -Scope CurrentUser
> Install-Module oh-my-posh -Scope CurrentUser
# 安装 DockerCompetion
> Install-Module DockerCompletion -Scope CurrentUser
> cat $PROFILE
Import-Module DockerCompletion
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox
复制代码
小技巧
以管理员身份运行
同时按住 Ctrl +Shift
键,点击打开 Windows Terminal。
或者将 Windows Terminal 锁定在任务栏第一个位置,使用快捷键 Ctrl + Shift + Win + 1
打开。
资源
划线
评论
复制
发布于: 2020 年 05 月 24 日阅读数: 99
版权声明: 本文为 InfoQ 作者【FeiLong】的原创文章。
原文链接:【http://xie.infoq.cn/article/c0284d1b119054ad65f04c614】。
本文遵守【CC-BY 4.0】协议,转载请保留原文出处及本版权声明。
FeiLong
关注
还未添加个人签名 2018.09.17 加入
还未添加个人简介
评论