windows terminal

omp.json

{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "version": 3,
  "final_space": true,
  "transient_prompt": {
    "template": "<#BF5FFF>🌸 伟大而全能的圣嘉然已回应了嘉心糖的询问 ✨</>\n<#00FFFF>🎀 她的信徒嘉心糖曾询问过:</> ",
    "foreground": "#FFD700",
    "background": "transparent"
  },
  "blocks": [
    {
      "type": "prompt",
      "alignment": "left",
      "overflow": "break",
      "segments": [
        {
          "type": "path",
          "style": "plain",
          "foreground": "#FFFFFF",
          "background": "transparent",
          "template": "<#FF6B00>🍓 嘉心糖在 </><#FFFFFF>{{ .Location }}</> "
        },
        {
          "type": "git",
          "style": "plain",
          "foreground": "#FF85B3",
          "background": "transparent",
          "properties": {
            "fetch_status": true,
            "branch_identical_icon": " 🎀",
            "branch_ahead_icon": " 🌸",
            "branch_behind_icon": " 🥀",
            "branch_gone_icon": " 💨"
          },
          "template": "<#FF85B3>🌷 {{ .HEAD }}{{ .BranchStatus }}</>{{ if .Working.Changed }}<#FF4D6D>  📝 {{ .Working.String }}</>{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }}<#666666> |</>{{ end }}{{ if .Staging.Changed }}<#5DFDCB>  ✨ {{ .Staging.String }}</>{{ end }}{{ if gt .StashCount 0 }}<#FFD700>  🎁 {{ .StashCount }}</>{{ end }} "
        },
        {
          "type": "node",
          "style": "plain",
          "foreground": "#FFD700",
          "background": "transparent",
          "properties": {
            "display_mode": "files",
            "fetch_version": true
          },
          "template": "<#FFD700>󰎙 {{ .Full }}</> "
        },
        {
          "type": "python",
          "style": "plain",
          "foreground": "#FFD700",
          "background": "transparent",
          "properties": {
            "display_mode": "context",
            "fetch_version": true,
            "fetch_virtual_env": true
          },
          "template": "{{ if .Venv }}<#FFD700>🐍 {{ .Venv }} ({{ .Full }})</>{{ else }}<#FFD700>🐍 {{ .Full }}</>{{ end }} "
        },
        {
          "type": "executiontime",
          "style": "plain",
          "foreground": "#A78BFA",
          "background": "transparent",
          "properties": {
            "threshold": 2000,
            "style": "austin",
            "always_enabled": false
          },
          "template": "<#A78BFA>⏱️ {{ .FormattedMs }}</> "
        }
      ]
    },
    {
      "type": "prompt",
      "alignment": "right",
      "segments": [
        {
          "type": "battery",
          "style": "plain",
          "foreground": "#7DD3FC",
          "background": "transparent",
          "properties": {
            "charged_icon": "🔋",
            "charging_icon": "⚡",
            "discharging_icon": "🪫",
            "not_charging_icon": "🔌"
          },
          "template": "{{ if lt .Percentage 20 }}<#FF4D6D>{{ .Icon }}{{ .Percentage }}%</>{{ else }}<#7DD3FC>{{ .Icon }}{{ .Percentage }}%</>{{ end }} "
        },
        {
          "type": "time",
          "style": "plain",
          "foreground": "#7DD3FC",
          "background": "transparent",
          "properties": {
            "time_format": "15:04"
          },
          "template": "<#7DD3FC>🕐 {{ .CurrentDate | date .Format }}</> "
        }
      ]
    },
    {
      "type": "prompt",
      "alignment": "left",
      "newline": true,
      "segments": [
        {
          "type": "status",
          "style": "plain",
          "foreground": "#FF85B3",
          "background": "transparent",
          "properties": {
            "always_enabled": true
          },
          "template": "{{ if gt .Code 0 }}<#FF4D6D>😿 [{{ .Code }}]</>{{ else }}<#FF85B3>😸</>{{ end }} <#FF85B3>向伟大而全能的圣嘉然询问</>:"
        }
      ]
    }
  ]
}

Microsoft.PowerShell_profile.ps1

oh-my-posh init pwsh --config C:\Users\diana\Documents\WindowsPowerShell\oh-my-posh\omp.json | Invoke-Expression
Set-PSReadLineOption -PredictionSource History
Set-PSReadLineKeyHandler -Key RightArrow -Function ForwardChar
Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete
Set-PSReadLineKeyHandler -Key Tab -ScriptBlock {
    $line = $null; $cursor = $null
    [Microsoft.PowerShell.PSConsoleReadLine]::GetBufferState([ref]$line, [ref]$cursor)
    [Microsoft.PowerShell.PSConsoleReadLine]::AcceptSuggestion()
    $newLine = $null; $newCursor = $null
    [Microsoft.PowerShell.PSConsoleReadLine]::GetBufferState([ref]$newLine, [ref]$newCursor)
    if ($line -eq $newLine) {
        [Microsoft.PowerShell.PSConsoleReadLine]::MenuComplete()
    }
}

Terminal

{
  "$help": "https://aka.ms/terminal-documentation",
  "$schema": "https://aka.ms/terminal-profiles-schema",
  "actions": [],
  "centerOnLaunch": true,
  "copyFormatting": "none",
  "copyOnSelect": false,
  "defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
  "disabledProfileSources": [
    "Windows.Terminal.Azure",
    "Git",
    "Windows.Terminal.PowershellCore",
    "Windows.Terminal.VisualStudio",
    "Windows.Terminal.Wsl"
  ],
  "experimental.enableColorSelection": true,
  "experimental.scrollToChangeOpacity": false,
  "experimental.scrollToZoom": false,
  "initialCols": 70,
  "initialPosition": ",",
  "initialRows": 25,
  "keybindings": [
    {
      "id": "Terminal.CopyToClipboard",
      "keys": "ctrl+c"
    },
    {
      "id": "Terminal.PasteFromClipboard",
      "keys": "ctrl+v"
    },
    {
      "id": "Terminal.DuplicatePaneAuto",
      "keys": "alt+shift+d"
    }
  ],
  "newTabMenu": [
    {
      "type": "remainingProfiles"
    }
  ],
  "profiles": {
    "defaults": {},
    "list": [
      {
        "antialiasingMode": "cleartype",
        "colorScheme": "Diana_Pink",
        "commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /nologo",
        "cursorShape": "filledBox",
        "experimental.rainbowSuggestions": true,
        "experimental.retroTerminalEffect": true,
        "font": {
          "cellHeight": "1.3",
          "cellWidth": "0.5",
          "colorGlyphs": false,
          "face": "LXGW WenKai Mono,Symbols Nerd Font",
          "size": 16,
          "weight": "normal"
        },
        "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
        "hidden": false,
        "icon": "C:\\Users\\diana\\Pictures\\\u5934\u50cf\\619f378852ebac9fdf87e20418d6f99bfa750c7f.jpg@128w_128h_1c_1s.png",
        "name": "\u5723\u5609\u7136\u901a\u8baf\u5668",
        "opacity": 80,
        "padding": "5,5,5,5",
        "tabTitle": "\u5723\u5609\u7136\u901a\u8baf\u5668",
        "useAcrylic": false
      }
    ]
  },
  "schemes": [
    {
      "background": "#050005",
      "black": "#2E3440",
      "blue": "#82AAFF",
      "brightBlack": "#4C566A",
      "brightBlue": "#A6ACCD",
      "brightCyan": "#ACFFFF",
      "brightGreen": "#66FFB2",
      "brightPurple": "#FF4DA6",
      "brightRed": "#FF6B6B",
      "brightWhite": "#FFFFFF",
      "brightYellow": "#FFEA7F",
      "cursorColor": "#FF4DA6",
      "cyan": "#89DDFF",
      "foreground": "#F0F0F0",
      "green": "#00E5A0",
      "name": "Diana_Pink",
      "purple": "#D980FA",
      "red": "#FF3333",
      "selectionBackground": "#6E3A82",
      "white": "#D8DEE9",
      "yellow": "#FFDD55"
    }
  ],
  "showTabsInTitlebar": true,
  "themes": [],
  "useAcrylicInTabRow": false,
  "warning.confirmCloseAllTabs": false,
  "warning.inputService": false,
  "warning.largePaste": false,
  "warning.multiLinePaste": "automatic"
}

Modules:

PSReadLine: https://github.com/PowerShell/PSReadLine
Install-Module PSReadLine -Repository PSGallery -Scope CurrentUser -Force

Font:

LXGW WenKai Mono
https://github.com/lxgw/LxgwWenkai

Symbols Nerd Font
https://github.com/ryanoasis/nerd-fonts
download: NerdFontsSymbolsOnly.zip