Windows powershell을 mac terminal처럼 예쁘게 꾸며보자(Oh-My-Posh)
PowerShell 7 (최신버전) 설치
Powershell을 관리자 모드로 열고 필요한 프로그램 설치 (posh-git, oh-my-posh, PSReadLine)
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
ExecutionPolicy를 Unrestricted로 설정
Set-ExecutionPolicy Unrestricted
# 적용되었는지 확인
ExecutionPolicy
이런 오류 나면 다음의 코드 사용
Set-ExecutionPolicy -Scope CurrentUser Unrestricted
PowerShell 프롬프트 설정
notepad $PROFILE
다음 코드 작성하고 저장 후 재실행
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt Paradox
테마를 적용하려면 폰트 설치도 필수다.
아래 링크를 타고 들어가서 있는 것들 중 아무거나 설치하자 (Nerd Fonts)
Nerd Fonts - Iconic font aggregator, glyphs/icons collection, & fonts patcher
해석 : Oh My Posh 는 Nerd Fonts 들에 최적화 되어있다. 보통 Melso LGM NF 체에 최적화 되어있긴 한데, Nerd Fonts 중 아무거나 사용해도 되긴 한다.
폰트 설치 후 Windows Terminal → 설정 → Powershell → 모양 → 글꼴 에서 설치한 폰트를 선택해준다