惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
L
LangChain Blog
人人都是产品经理
人人都是产品经理
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Tailwind CSS Blog
N
Netflix TechBlog - Medium
Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
博客园 - 【当耐特】
量子位
有赞技术团队
有赞技术团队
Jina AI
Jina AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
C
Check Point Blog
B
Blog RSS Feed
M
MIT News - Artificial intelligence
H
Help Net Security
雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 聂微东
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
A
About on SuperTechFans
腾讯CDC

jdhao's digital space

Conversion between base64 and OpenCV or PIL Image 腾讯云对象存储博客图床开启 CDN 加速(不需要购买额外域名) Search and Replace in Multiple Files in Vim/Neovim Change Table Column Width in LaTeX Image or Table Side by Side in LaTeX LaTeX 并排显示图像或表格 Firenvim: Neovim inside Your Browser Content inside HTML tags missing in Latest Hugo? Creating Markdown Front Matter with Ultisnips Labelme JSON 标注格式转 voc XML 格式 Nifty Nvim Techniques That Make My Life Easier -- Series 6 macOS 下如何为视频制作字幕 Running Command Asynchronously inside Neovim Resolving Merge Conflict after Git Stash Pop Pylint: command not found? A Hands-on Experience with Neovim's Built-in LSP Support How to Convert PDF to Images with Imagemagick 互联网上常用缩略语集锦 File Backup in Neovim Converting PDF Pages to Images with Poppler Nifty Nvim Techniques That Make My Life Easier -- Series 5 Neovim Configuration for System-wide Use How to sort a list of tuple or list in Python -- lambda or itemgetter? Building A Vim Statusline from Scratch 人类第一颗原子弹爆炸始末 Distributed Training in PyTorch with Horovod Learning Expect Programming Essential Knowledge about SSH Nifty LaTeX Techniques -- Series 1 更改 Adsense 邮寄地址,重新寄送 PIN
Configure Windows Terminal in 2021
2021-08-06 · via jdhao's digital space

After updating my Windows system to the latest version, I can finally use the new Windows Terminal.

How to install?#

Directly install from GitHub binary release, link here.

Use git-bash in Windows Terminal#

Install git for Windows. During installation, there is an option to create a profile for Windows terminal. Remember to tick it on.

Go check windows terminal settings, and choose Git Bash as the default profile.

Remove annoying flash#

When I use Git-bash and press backspace, the whole screen flashes which is really annoying. Based on discussion here, we can add following conf to ~/.inputrc:

Mouse does not work?#

Update: 2022-08-26

I have noticed that when I ssh to remote server under git-bash in Windows Terminal, the mouse does not work. In the remote server, if I open a nvim instance, I can not use mouse to scroll even if I have enabled mouse support (set mouse=a). However, if I use PowerShell, everything works fine, not sure if related to this issue.

Key binding issues#

How to Ctrl-c and Ctrl-v for copy and paste#

Disable Ctrl-c and Ctrl-v for copy and paste

By default, Windows Terminal use these two key bindings for copy and paste text, which is annoying for Vim users, as they have different use cases in Vim.

To disable the default bindings for these two, press Ctrl + , to open the settings, and then click Open JSON file to open its config. In the action part, just use different key bindings for paste and copy or just delete the two settings:

{"command": { "action": "copy", "singleLine": false }, "keys": "ctrl+c" },
{ "command": "paste", "keys": "ctrl+v" }

Disable F11 for toggle full screen mode#

By default, F11 is used by windows terminal to toggle full screen mode. To disable it, add the following to your action setting in the config JSON file:

{ "command": null, "keys": "f11" }

Ref:

Unable to load a font?#

I have set up JetBrainsMono NF as my default font. However, when I open Windows Terminal for the first time, it warns:

Unable to find the selected font “JetBrainsMono NF”

Similar issue has been reported here. The solution is to re-install the font and install it for every user instead of the current user.

Add a new colorscheme#

This site contains a lot of custom colorschemes for windows Terminal. Press Get Theme to copy the theme configuration.

Then open Terminal config, and paste the theme config to the schemes section and restart Terminal.

There are also some themes here.