Nexmoe

Nexmoe

一个开发者。关于勇敢与热爱,互联网/创造/赛博朋克
twitter
github

美化你的終端

image

雖然內建的 PowerShell 已經具備了自訂顏色等功能,但仍然顯得相當醜陋。本文將幫助您在 Windows 10 上打造最美的終端。

安裝 Fluent Terminal 建議使用 Terminus#

Fluent Terminal 是一個基於 UWP 和 Web 技術的終端應用程式,相較於 Terminus,它佔用更少的資源,並且有中文翻譯,設定頁面還提供了圖形化界面。

在以下連結下載最新版本:
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:本次美化的主角,帶有色彩的箭頭標籤。

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

安裝 oh-my-posh

啟用 oh-my-posh 與 posh-git

Import-Module posh-git
Import-Module oh-my-posh

設定主題

Set-Theme Agnoster

可選列表

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

輸入以下命令以獲取配置文件路徑

$profile

upload successful

打開控制台輸出的文件所在目錄,輸入配置項並保存

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

upload successful

打開 Fluent Terminal 查看效果

upload successful

載入中......
此文章數據所有權由區塊鏈加密技術和智能合約保障僅歸創作者所有。