Powershell alias 영구 등록

sookyeong·2022년 3월 30일
0

Powershell alias 영구 등록

메모장으로 $PROFILE을 연다.

$ notepad $PROFILE

new-alias를 설정해준다.

(powershell의 alias는 호출 개념이기 때문에 명령줄을 function으로 만들어주어야 한다.)

function gotoblog { set-location "D:/sookyeongyeom.github.io" }
new-alias blog gotoblog


결과

profile
actions speak louder than words

0개의 댓글