Settings.json
Windows Terminal을 실행한 후, 상단의 drop down > 설정
을 클릭합니다.
실행된 settings.json
파일에서 defaultProfile
의 profiles
내에 아래의 코드를 추가합니다.
"startingDirectory": "."
전체
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a11ff44bf}",
"copyOnSelect": false,
"copyFormatting": false,
"profiles":
{
"defaults":
{
},
"list":
[
{
// Make changes here to the powershell.exe profile.
"guid": "{61c54bbd-c2c6-5271-96e7-009a11ff44bf}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"hidden": false,
// Here!!!
"startingDirectory": "."
}
]
},
}
wt.reg
바탕화면(desktop
)에서 우클릭 후, 새로 만들기(W) > 텍스트 문서
를 클릭하여 새 텍스트문서를 만든 후, wt.reg
로 파일명을 변경합니다.
생성한 wt.reg
를 우클릭 편집(E)
를 클릭합니다.
파일 내에 아래의 내용을 입력합니다. (* <UserName>
을 본인의 계정명으로 수정해야합니다.)
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Open Windows Terminal here"
[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="C:\\Users\\<UserName>\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe"
수정내용을 저장한 후, 다시 wt.reg
를 우클릭 병합(G)
를 클릭합니다.
경고문이 나와도 당황하지말고 예(Y)
를 클릭합니다.
실행하기
아무 폴더로나 이동한 후, 우클릭을 하면 Open Windows Terminal here
이 추가된 것을 확인하실 수 있습니다.
클릭하면 해당 위치에서 터미널이 실행됩니다.
참고한 곳
'OS > Windows' 카테고리의 다른 글
VirtualBox 공유폴더 (1) | 2020.06.06 |
---|---|
VirtualBox 고정IP 설정 (1) | 2020.06.01 |