Posh-git 설치

Posh-git 설치

날짜
생성자
ShalomShalom
카테고리
PowerShell
작성일
2023년 05월 15일
태그
Shell
git
이전 블로그

Posh-git 설치법

Window의 환경의 powershell이나 VScode에서 Git에 대한 명령어를 편하게 사용하기 위해 posh-git을 설치한다.

설치

powershell은 관리자 모드로..

Step.1

먼저 파워 쉘의 버전을 확인한다.
파워 쉘은 5.0버전 이상이어야하고 현재 예제는 7.0에서 작성된 것이다
$PSVersionTable.PSVersion

Step.2

Powershell 갤러리에서 posh-git과 oh-my-posh를 설치해준다.
Install-Module -Name posh-git Install-Module -Name oh-my-posh

Step.3 posh-git import하기

Import-Module posh-git Add-PoshGitToProfile -AllHosts notepad $profile.CurrentUserAllHosts
메모장에 아래 복붙
Import-Module posh-git

Step.4 폰트 설정하기

Releases · microsoft/cascadia-code (github.com) 에서 Cascadit-code를 다운을 받는다.
압축 풀고 나서 ttf/CascadiaCodePL를 설치한다.
<aside> 💡 PL이란 일반 문자 포함 이모티콘(?) 같은 문자도 표현이 가능하게 해주는 것 같음
</aside>

Step.4-1 Powershell

설정에 들어가서
notion image
설정 파일을 열어준다.
notion image
profile::default를 찾아서 아래를 추가해준다.
"fontFace": "Cascadia Code PL"
notion image
설정 예시
터미널을 끄고 다시 시작

Step.4-2 VSCode

Ctrl + Shift + p
notion image
json 열기
notion image
json에 다음 추가
"terminal.integrated.fontFamily": "Cascadia Code PL", "terminal.external.windowsExec": "C:\\\\Program Files\\\\PowerShell\\\\7\\\\pwsh.exe",

참고

 

댓글

guest