Featured image of post 在window Terminal中使用Cmder

在window Terminal中使用Cmder

Cmder是一款很好用的Shell,當它配上Window Terminal後更是妙不可言

安裝window terminal

至Microsoft Store安裝window terminal

image-20230321104350045

安裝Cmder

Cmder載點

並將它解壓縮後放置

%USERPROFILE%/AppData/Roaming

也就是

C:\Users\you_userName\AppData\Roaming

設定環境變數

接著設定環境變數

1
2
變數名稱:CMDER_ROOT
變數值:%USERPROFILE%/AppData/Roaming/cmder

image-20230321104927389

1
2
變數名稱:ConEmuDir
變數值:%USERPROFILE%/AppData/Roaming/cmder/vendor/conemu-maximus5

image-20230321105111605

設定window Termianl

打開設定

image-20230321105152420

按左下角的開啟JSON檔案

image-20230321105210480

將下列這段貼上至JSON檔中的這個位置

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
         {
                "background": "#2E3436",
                "commandline": "cmd.exe /k %CMDER_ROOT%\\vendor\\init.bat",
                "font": 
                {
                    "face": "Cascadia Code",
                    "size": 10.0
                },
                "guid": "{6d953325-a939-475d-a151-940cbd0302fb}",
                "icon": "%CMDER_ROOT%\\icons\\cmder.ico",
                "name": "Cmder",
                "padding": "15",
                "startingDirectory": "%USERPROFILE%/Desktop"
            }

就像這樣子

image-20230321105524196

接著重開window terminal就可以囉~

Licensed under CC BY-NC-SA 4.0