Windows Terminal 添加到右鍵菜單


准備工作

1 圖標
系統中並沒有找到 Windows Terminal 的 ico 圖標。
C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.0.1401.0_x64__8wekyb3d8bbwe\Images 這個目錄下(不同電腦上,_1.0.1401.0_x64__8wekyb3d8bbwe 這串會有不一樣。)有 png 圖標。

可以使用 PNG轉ICO,PNG轉ICNS | 圖標格式在線轉換 - EASYICON.NET 將其轉換為 ico 圖標。

已經轉換好的下載地址:
鏈接: https://pan.baidu.com/s/1sREYpY2kNjxxS4mkj2zAdg 提取碼: pgj9

2 設置啟動目錄
默認 Windows Terminal 會在用戶目錄啟動,需要添加配置,使其在當前目錄啟動。

"startingDirectory" : "."

添加右鍵菜單

其實就是寫一段注冊表

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Windows Terminal Here"
"Icon"="wt_32.ico 的路徑,要使用 \\ 做路徑分隔"

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="C:\\Users\\你的用戶名\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe"

將以上內容添加到一個文本文件,修改后綴為 .reg ,運行即可。

其它

Windows Terminal 主題:
Windows Terminal Themes

Windows Terminal Github:
microsoft/terminal: The new Windows Terminal and the original Windows console host, all in the same place!

下載地址(就在 Win10 應用商店)
獲取 Windows Terminal - Microsoft Store zh-CN

P.S. Windows Terminal 的快速啟動命令是 wt,在 Win+R 中直接運行 wt 即可打開。

參考鏈接

[[其他]將Windows Terminal添加到右鍵菜單 - leeli73 - 博客園](https://www.cnblogs.com/lee-li/p/12951932.html
新發布的Windows Terminal如何添加到右鍵菜單? - 知乎

原文鏈接:https://www.cnblogs.com/jasongrass/p/12960289.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM