Windows Terminal 安裝與配置

2022-06-11 09:33:11 字數 1832 閱讀 1196

安裝可以從應用商店安裝(直接搜尋即可)或者github安裝(可以戳這裡):

解壓後選擇其中乙個ttf安裝即可:

安裝好後可以對比一下新的powershell core預設是黑底的,而且標題也不一樣:

安裝過程中可能會卡住,稍等即可。

另外有可能會提示不信任的倉庫,選擇y即可:

開啟window terminal的配置檔案,檢視list中有無powershell core,如果沒有,請手動新增到list中:

由於安裝了oh-my-posh,可以使用set-theme切換主題,比如:

set-theme agnoster
輸入set-theme即可按tab補全主題。

另外這樣修改的主題只是臨時生效,想要永久生效需要寫入配置檔案中,輸入:

$profile
會顯示配置檔案的位置,每個人不一樣,沒有的話就新建,在其中輸入:

import-module posh-git

import-module oh-my-posh

import-module psreadline

set-theme agnoster

即可使主題永久生效。

另外,如果主題的顏色不滿意,可以配合show-colorsshow-themecolors修改主題顏色。

Windows Terminal 配置記錄

幫助文件 windows terminal正式版已支援右鍵選單,無需手動修改登錄檔。update 2021 3 20 terminal配置檔案,新增git bash commandline c program files git bin bash.exe login i icon c program...

配置 Windows Terminal 步驟

安裝 oh my posh,可以在 windows terminal 中的 windows powershell7 中輸入以下命令 安裝過程中需要輸入 y 即可 install module oh my posh scope currentuser skippublishercheckinstall...

windows terminal踩坑記錄

1.安裝 windows terminal 官網有幾種安裝方式,我使用的是windows10 的microsoft store 在商店中搜尋windows terminal將看到以下頁面 注意 windows terminal需要windows 10 1903 內部版本18362 或更高版本 2.w...