Windows 터미널 테마 변경

Windows 터미널은 명령 프롬프트, PowerShell 및 WSL과 같은 명령줄 도구 및 셸 사용자를 위한 현대적이고 빠르고 효율적이며 강력하고 생산적인 터미널 응용 프로그램입니다. 주요 기능에는 여러 탭, 창, 유니코드 및 UTF-8 문자 지원, GPU 가속 텍스트 렌더링 엔진, 사용자 정의 테마, 스타일 및 구성이 포함됩니다.

하지만 Windows 터미널을 아름답게 보이게 하려면 테마를 추가해야 하므로 시작하겠습니다.

#첫 번째



Microsoft Store에서 Windows 터미널 설치Go to Store

#초



설치 모듈 설치 Oh-my-Posh

 Install-Module posh-git -Scope CurrentUser
 Install-Module oh-my-posh -Scope CurrentUser


#제삼



  • *Powershell 프로필 만들기 *

     // use vscode
     code $PROFILE
    


  • 프로필에 이것을 추가하십시오

     Import-Module posh-git
     Import-Module oh-my-posh
    


  • 테마 가져오기, 테마 선택here, 프로필에서 가져오기 후

     Import-Module posh-git
     Import-Module oh-my-posh
    
     # your theme
     Set-PoshPrompt -Theme paradox
    
    


  • #네번째


  • Windows 터미널 색상을 사용자 지정하고 터미널을 연 다음 설정을 클릭합니다.


  • "schemes"에 이 스타일 개체를 추가합니다.

     "schemes": [
        {
            "name": "CustomeTheme",
            "black": "#7d8b8f",
            "red": "#b23a52",
            "green": "#789b6a",
            "yellow": "#b9ac4a",
            "blue": "#225a79",
            "purple": "#bd4f5a",
            "cyan": "#2b7c71",
            "white": "#d2d8d9",
            "brightBlack": "#888888",
            "brightRed": "#f24840",
            "brightGreen": "#80c470",
            "brightYellow": "#ffeb62",
            "brightBlue": "#4196ff",
            "brightPurple": "#fc5275",
            "brightCyan": "#53cdbd",
            "brightWhite": "#d2d8d9",
            "background": "#2b2d2e",
            "foreground": "#d2d8d9",
            "selectionBackground": "#e4e8ed",
            "cursorColor": "#708284"
        }
    ],
    


  • 목록에서 해당 테마를 추가합니다.

      "list":
        [
            {
                // Make changes here to the powershell.exe profile.
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "name": "Windows PowerShell",
                "commandline": "powershell.exe",
                "hidden": false,
                "fontFace": "Fira Code",
                "fontSize": 9,
                "colorScheme": "CustomeTheme"
            },
            {
                // Make changes here to the cmd.exe profile.
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "name": "Command Prompt",
                "commandline": "cmd.exe",
                "hidden": false
            },
            {
                "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
                "hidden": false,
                "name": "Azure Cloud Shell",
                "source": "Windows.Terminal.Azure"
            }
        ]
    

  • 저장하고 터미널을 다시 로드합니다
  • .

    메모



    열어서 테마 색상을 변경할 수 있습니다.

     $Home\[My ]Documents\WindowsPowerShell\Modules\oh-my-posh\3.118.0\themes
    


    활성 테마를 선택하고 해당 json을 편집합니다.

    좋은 웹페이지 즐겨찾기