본문으로 바로가기

윈도우 터미널(PowerShell) zsh 스타일 적용

category IT/후기와 추천 2020. 5. 26. 20:56

 

1. 관리자 권한으로 PowerShell 실행

2. 이하 명령어 실행(Y 입력)

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

3. 이하 명령어로 PowerShell에서 스크립트 허용시키기

Set-ExecutionPolicy Unrestricted

4. 스크립트 허용이 적용됬는지 확인

ExecutionPolicy
// 응답 : Unrestricted

5. 노트패드로 기본 프로파일 열기

notepad $PROFILE

6. 실행된 노트패드 맨 끝에 이하 내용 적고 저장

Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox

 

※ 글자가 깨질 경우

Cascadia Code PL 글꼴 다운로드(링크) 후 설치.

> 만약 글꼴이 마음에 안 드신다면 D2Coding 글꼴도 추천드립니다. (링크)

 

settings.json 실행 후, fontFace 항목 추가. (D2Coding일 경우, fontFace 항목을 "D2Coding ligature"로 변경.)

{
    // Make changes here to the powershell.exe profile.
    "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
    "name": "Windows PowerShell",
    "commandline": "powershell.exe",
    "fontFace": "Cascadia Code PL",  // 해당 부분 추가
    "hidden": false
},

 

 

 

 

 

https://docs.microsoft.com/en-us/windows/terminal/tutorials/powerline-setup

 

Windows Terminal Powerline Setup

In this tutorial, you learn how to set up Powerline in the Windows Terminal.

docs.microsoft.com