配置windows的好看还好用的 Windows Terminal

文章目录

    • Windows Terminal简介
    • windows terminal 安装
      • windows版本要求
    • 配置
      • posh-git 与 oh-my-posh
      • Windows Terminal 美化
    • 快速打开文件路径

Windows Terminal简介

Windows Terminal 是一款微软自家的 终端模拟器 ,拥有其他第三方终端难以匹敌的响应速度、完整的字符渲染机制(如果配置得当的话)、现代化风格的设计。这款 开源免费 终端自发布以来就好评不断,在眼花缭乱的第三方终端面前丝毫不乱阵脚,甚至连自家默认终端都完全不放过,照单全部碾压。

windows terminal 安装

目前微软已经将其下发在微软商城中,可直接免费安装:
配置windows的好看还好用的 Windows Terminal_第1张图片
github上可以找到源码,也可用最新的vs2019编译然后手动安装,具体步骤github上有说明
也可用scoop安装:

scoop install windows-terminal

windows版本要求

windows 版本要求为1903,cmd下输入winver可查看当前版本

配置

posh-git 与 oh-my-posh

posh-git 可以为 PowerShell 提供 git 命令补全。 oh-my-posh 可以美化 prompt,提供各种主题。直接把两个一起安上:

Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser

在 profile 配置文件中启用模块并选择 prompt 样式主题:
在命令行中用记事本打开profile

notepad $profile

自定义主题:
粘贴进 profile

Import-Module posh-git
Import-Module oh-my-posh
Set-Theme paradox

oh-my-posh详细设置参见

Windows Terminal 美化

主要是配置字体和配色方案。配色方案可以在iTerm2-Color-Schemes这个项目中挑选。

快速打开文件路径

在文件路径中输入wt即可
配置windows的好看还好用的 Windows Terminal_第2张图片

你可能感兴趣的:(工具,实用工具,cmd,Terminal,WindowsTerminal)