主要是分享一下配置。

Windows Terminal 配置

字体用的是 JetBrains Mono

清单

{
    "guid": "{71160544-14d8-4194-af25-d05feeac7233}",
    "name": "MSYS2",
    "commandline": "D:\\msys64\\msys2_shell.cmd -msys -defterm -no-start -full-path -here -shell zsh",
    "icon": "D:\\msys64\\msys2.ico",
    "startingDirectory": "%CD%",
    "closeOnExit": "always",
    "colorScheme": "Dracula",
    "fontFace": "JetBrains Mono",
    "fontSize": 10
}
......

阅读全文

λ 经常导致输入的时候出问题,我是把它改为 $

Cmd

vendor\clink.lua

        local lambda = "λ"

改为:

        local lambda = "$"

PowerShell

vendor\profile.ps1

    Microsoft.PowerShell.Utility\Write-Host "`nλ " -NoNewLine -ForegroundColor "DarkGray"

改为:

    Microsoft.PowerShell.Utility\Write-Host "`n$ " -NoNewLine -ForegroundColor "DarkGray"

Bash

vendor\git-for-windows\etc\profile.d\git-prompt.sh

  PS1="$PS1"'λ '                 # prompt: always λ 

改为:

  PS1="$PS1"'$ '                 # prompt: always $ 

阅读全文