折影轻梦
文章74
标签43
分类4
美化你的终端

美化你的终端

自带的 PowerShell 虽然有了自定义颜色等功能,但还是太丑,这一篇文章将帮你打造 Windows10 上最美终端。

安装 Fluent Terminal 建议使用 Terminus

Fluent Terminal 是一个基于 UWP 和 Web 技术的终端,相比较 Terminus,占用资源更少,而且有中文翻译,并且设置页还有 GUI。

在以下链接下载最新版
https://github.com/felixse/FluentTerminal/releases

解压到任意位置,打开目录,右键 Install.ps1 使用 PowerShell 运行,选择 Sideloading(旁加载应用)安装

安装 Fluent Terminal

安装完成

安装 Terminus

https://eugeny.github.io/terminus/

安装 oh-my-posh 与 posh-git

posh-git:此模块用于将 git 集成于 PowerShell 中
oh-my-posh:本次美化主角,带色的箭头标签

1
2
3
Set-ExecutionPolicy Bypass
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser

安装 oh-my-posh

启用 oh-my-posh 与 posh-git

1
2
Import-Module posh-git
Import-Module oh-my-posh

设置主题

1
Set-Theme Agnoster

可选列表

  • Agnoster
  • Avit
  • Darkblood
  • Fish
  • Honukai
  • Paradox
  • PowerLine
  • robbyrussell
  • Sorin
  • tehrob

输入获取配置项目录

1
$profile

upload successful

打开控制台输出目录中的文件,输入配置项并保存

1
2
Import-Module oh-my-posh
Set-Theme Agnoster

upload successful

打开 Fluent Terminal 查看效果

upload successful

本文作者:折影轻梦
本文链接:https://nexmoe.com/1519803391.html
版权声明:本文采用 CC BY-NC-SA 3.0 CN 协议进行许可