Windows Terminal 全新高質感指令視窗安裝與設定

發表於

APP

在 Microsoft Store 上面現在已經能下載到新版的 Windows 指令視窗 Windows Terminal 預覽版,能取代傳統的命令提示字元。在前陣子的更新中,他們加入了快速開啟指令,讓 Windows Terminal 的易用性提升了一個檔次。

上圖就是新版指令視窗的介面,與舊版最大的差別除了能自訂外觀之外,還加入了分頁功能。可以在一個視窗中操作 cmd、PowerShell 與 Azure Cloud Shell。

他需要 Windows 10 18362 以上系統版本,開啟 Microsoft Store 搜尋 Windows Terminal 進行下載安裝。

安裝完成後,Windows Terminal 可以直接從開始選單叫出來。只不過如果我們要下指令的資料夾路徑比較複雜,就可以改用快速啟動的方式:

在資料夾的路徑網址欄中直接打上【wt -d .】後按下 Enter 送出,這樣指令視窗就會在存在於當前的路徑了。

另外,開啟 Settings 可以自訂 Windows Terminal 的外觀。

詳細的設定方式可以參考 官方文件說明,在這裡提供目前我用的設定檔:

{
   "$schema":"https://aka.ms/terminal-profiles-schema",
   "defaultProfile":"{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
   "profiles":[
      {
         "acrylicOpacity":0.75,
         "closeOnExit":true,
         "colorScheme":"Campbell",
         "commandline":"cmd.exe",
         "cursorColor":"#FFFFFF",
         "cursorShape":"bar",
         "fontFace":"Consolas",
         "fontSize":10,
         "guid":"{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
         "historySize":9001,
         "icon":"ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png",
         "name":"cmd",
         "padding":"0, 0, 0, 0",
         "snapOnInput":true,
         "startingDirectory":"%USERPROFILE%",
         "useAcrylic":true
      },
      {
         "guid":"{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
         "hidden":false,
         "name":"Azure Cloud Shell",
         "source":"Windows.Terminal.Azure"
      },
      {
         "guid":"{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
         "name":"Windows PowerShell",
         "commandline":"powershell.exe",
         "hidden":false
      }
   ],
   "schemes":[
      {
         "background":"#282A36",
         "black":"#21222C",
         "blue":"#BD93F9",
         "brightBlack":"#6272A4",
         "brightBlue":"#D6ACFF",
         "brightCyan":"#A4FFFF",
         "brightGreen":"#69FF94",
         "brightPurple":"#FF92DF",
         "brightRed":"#FF6E6E",
         "brightWhite":"#FFFFFF",
         "brightYellow":"#FFFFA5",
         "cyan":"#8BE9FD",
         "foreground":"#F8F8F2",
         "green":"#50FA7B",
         "name":"Dracula",
         "purple":"#FF79C6",
         "red":"#FF5555",
         "white":"#F8F8F2",
         "yellow":"#F1FA8C"
      }
   ],
   "keybindings":[
   ]
}