Terminal: ์˜ค๋ฅธ์ชฝ ํด๋ฆญ ์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด์— "์—ฌ๊ธฐ์—์„œ Windows ํ„ฐ๋ฏธ๋„ ์—ด๊ธฐ"๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.

์— ๋งŒ๋“  2019๋…„ 05์›” 30์ผ  ยท  235์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: microsoft/terminal

์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด๋ฅผ ๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ ๋ฒ„ํŠผ์œผ๋กœ ํด๋ฆญํ•˜๋ ค๋ฉด "์—ฌ๊ธฐ์—์„œ Windows ํ„ฐ๋ฏธ๋„ ์—ด๊ธฐ"๋ฅผ ์ถ”๊ฐ€ ํ•˜์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ?

Windows 7์˜ ๊ฒฝ์šฐ ๊ธฐ๋ณธ์ ์œผ๋กœ ์•„๋ฌด๊ฒƒ๋„ ์„ ํƒํ•˜์ง€ ์•Š๊ณ  ํด๋”์— ๋“ค์–ด๊ฐˆ ๋•Œ "Shift + ๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ ๋ฒ„ํŠผ ํด๋ฆญ"์„ ํด๋ฆญํ•˜๋ฉด "์—ฌ๊ธฐ์—์„œ ๋ช…๋ น ์ฐฝ ์—ด๊ธฐ"์˜ต์…˜์„ ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

image

Windows 10์˜ ๊ฒฝ์šฐ ๊ธฐ๋ณธ์ ์œผ๋กœ "Shift + ๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ ๋ฒ„ํŠผ ํด๋ฆญ"์„ ํด๋ฆญํ•˜๋ฉด "์—ฌ๊ธฐ์—์„œ powershell ์ฐฝ ์—ด๊ธฐ"์˜ต์…˜์ด ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.

๊ทธ๋ ‡๋‹ค๋ฉด Windows 10 (1903 ์ดํ›„ ๋ฒ„์ „)์˜ ๊ฒฝ์šฐ ๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ ๋‹จ์ถ” ํด๋ฆญ ์ƒํ™ฉ์— ๋งž๋Š” ๋ฉ”๋‰ด์—์„œ ๋‹ค์Œ ์„ธ ๊ฐ€์ง€ ์˜ต์…˜์„ ์–ด๋–ป๊ฒŒ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

  • ์—ฌ๊ธฐ์—์„œ ๋ช…๋ น ์ฐฝ ์—ด๊ธฐ
  • ์—ฌ๊ธฐ์—์„œ powershell ์ฐฝ ์—ด๊ธฐ
  • ์—ฌ๊ธฐ์—์„œ Windows ํ„ฐ๋ฏธ๋„ ์—ด๊ธฐ

๋‹ต์žฅ์„ ๊ธฐ๋‹ค๋ฆฌ๊ฒ ์Šต๋‹ˆ๋‹ค. ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค ~

Area-User Interface Help Wanted Issue-Feature Product-Terminal Resolution-Fix-Committed

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

๊ธฐ๋ก์„ ์œ„ํ•ด ํ„ฐ๋ฏธ๋„์ด ์‚ฌ์šฉ์ž๋ฅผ ๋Œ€์‹ ํ•˜์—ฌ์ด ๋ฐ”๋กœ ๊ฐ€๊ธฐ๋ฅผ ์ž๋™์œผ๋กœ ๋“ฑ๋กํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.

๋ชจ๋“  235 ๋Œ“๊ธ€

์ถ”๊ฐ€ํ•˜๋ฉด ์—ฌ๊ธฐ ์—์„œ ํ„ฐ๋ฏธ๋„ ํ”„๋กœํ•„์— '์ด๋ฆ„'์ด ์“ฐ์—ฌ์ง„ ์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด์˜ ํ•˜์œ„ ๋ฉ”๋‰ด (๋˜๋Š” ์ด์™€ ์œ ์‚ฌํ•œ)๋กœ ์—ด ์‰˜์„ ์‹ค์ œ๋กœ ์„ ํƒํ•  ์ˆ˜ ์žˆ๋‹ค๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค.

  • Powershell
  • CMD
  • ์šฐ๋ถ„ํˆฌ

์ด๊ฒƒ์€ ์ข‹์€ ๊ธฐ๋Šฅ ์š”์ฒญ์ด๋ฉฐ ์ปค๋ฎค๋‹ˆํ‹ฐ์˜ ๋„์›€์„ ํ™•์‹คํžˆ ๋ฐ›์•„ ๋“ค์ผ ๊ฒƒ์ž…๋‹ˆ๋‹ค.

๋‚ด ์ง๊ฐ์€ ๊ทธ๊ฒƒ์ด # 689์˜ ์ž‘์—…๊ณผ ๊ด€๋ จ์ด์žˆ์„ ๊ฒƒ์ด๋ผ๊ณ  ๋งํ•˜์ง€๋งŒ ํ™•์‹คํžˆ Win32์— ๋Œ€ํ•ด ์ถฉ๋ถ„ํžˆ ์•Œ์ง€ ๋ชปํ•ฉ๋‹ˆ๋‹ค.

์ด๊ฒƒ์€ ์•„๋งˆ๋„ ๋‹ค์Œ๊ณผ ๊ฐ™์„ ๊ฒƒ์ž…๋‹ˆ๋‹ค : https://www.codeproject.com/Articles/441/The-Complete-Idiot-s-Guide-to-Writing-Shell-Extens

ํ•˜์ง€๋งŒ ์šฐ๋ฆฌ ์ฝ”๋“œ๋ฒ ์ด์Šค์— ATL์„ ๋‹ค์‹œ ๋„์ž…ํ•˜์ง€ ์•Š๊ณ ์„œ๋Š” ...

ํด๋” ์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด์— ๋‹จ์ผ ๋ช…๋ น์„ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฒƒ๋ณด๋‹ค _way_ ๋” ์‰ฝ์Šต๋‹ˆ๋‹ค. ๋‹จ์ˆœํ•œ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ํ‚ค์ผ๋ฟ์ž…๋‹ˆ๋‹ค.

์˜ˆ๋ฅผ ๋“ค์–ด (์•„์ด์ฝ˜ ๋“ฑ์„ ์ถ”๊ฐ€ ํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค)

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\Open Thing Here\command]
@="C:\\thing.exe \"%1\""

pacakged ์•ฑ์˜ ๊ฒฝ์šฐ ๋งค๋‹ˆํŽ˜์ŠคํŠธ์— ์„ ์–ธ๋ฉ๋‹ˆ๋‹ค. https://docs.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/element-uap-filetypeassociation์„ ์ฐธ์กฐํ•˜์‹ญ์‹œ์˜ค. ๋‚˜๋Š” ์ด๊ฒƒ์ด ํด๋”๋ฅผ ์ง€์›ํ•œ๋‹ค๊ณ  ์ƒ๊ฐํ•˜์ง€ ์•Š์ง€๋งŒ ์—ฌ๊ธฐ์—์„œ ์ฐพ๊ธฐ ์‹œ์ž‘ํ•˜์‹ญ์‹œ์˜ค.

# 561์˜ ์ค‘๋ณต ๊ฐ€๋Šฅ์„ฑ์ด ์žˆ์ง€๋งŒ ์—ฌ๊ธฐ์„œ ์ถ”์ ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

@miniksa @ zadjii-msft @ DHowett-MSFT @factormystic @ChrisGuzak

์ด์ œ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ–ˆ์Šต๋‹ˆ๋‹ค. ์ข…๊ฒฐ ๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ํ† ๋ก ์— ์ฐธ์—ฌํ•ด ์ฃผ์‹  ๋ชจ๋“  ๋ถ„๋“ค๊ป˜ ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

0 ๋‹จ๊ณ„ :

์•„๋ž˜์˜ ๋‘ ๊ฐ€์ง€ ์ƒ์ˆ˜๊ฐ€ ์ž˜ ์ž‘๋™ํ•˜๋Š”์ง€ ํ…Œ์ŠคํŠธํ•˜์—ฌ ๋‹ค๋ฅธ ๋‹จ๊ณ„๋ฅผ ๋”ฐ๋ฅด๋Š” ๋ฐ ์‚ฌ์šฉ๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค.

echo %USERPROFILE%

echo %LOCALAPPDATA%

์—ฌ๊ธฐ์„œ ๋ชจ๋“  ๊ฒƒ์ด ์ž˜ ์ž‘๋™ํ•˜๋ฉด์ด ๋‘ ์ƒ์ˆ˜๋ฅผ ๋‹ค๋ฅธ ์•„๋ž˜ ๋‹จ๊ณ„์—์„œ ์ง์ ‘ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋˜๋Š” ์•„๋ž˜ ๋‹จ๊ณ„์—์„œ ๋‹ค์Œ ๊ต์ฒด๋ฅผ ์ˆ˜ํ–‰ํ•˜์‹ญ์‹œ์˜ค.

% USERPROFILE % โ†’ C:\Users\[userName]
% LOCALAPPDATA % โ†’ C:\Users\[userName]\AppData\Local

์—ฌ๊ธฐ์„œ [userName] ๋Š” ์‚ฌ์šฉ์ž ์ด๋ฆ„์„ ๋‚˜ํƒ€๋ƒ…๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, ๋‚ด ์ด๋ฆ„์€ Bruce ์ž…๋‹ˆ๋‹ค.

1 ๋‹จ๊ณ„:
CMD ์—์„œ ์•„๋ž˜ ํ•ญ๋ชฉ ์‹คํ–‰ :

mkdir "%USERPROFILE%\AppData\Local\terminal"

image

2 ๋‹จ๊ณ„:
Windows ํ„ฐ๋ฏธ๋„ ์•„์ด์ฝ˜์„ %USERPROFILE%\AppData\Local\terminal ํด๋”์— ๋ณต์‚ฌํ•ฉ๋‹ˆ๋‹ค. ์•„์ด์ฝ˜์€ https://github.com/yanglr/WindowsDevTools/tree/master/awosomeTerminal/icons ์—์„œ ์–ป์„ ์ˆ˜ ์žˆ์œผ๋ฉฐ ํŒŒ์ผ ์ด๋ฆ„์€ wt_32.ico .

3 ๋‹จ๊ณ„ :
๋‹ค์Œ ์ฝ˜ํ…์ธ ๋ฅผ wt.reg ๋กœ ์ €์žฅ ํ•œ ๋‹ค์Œ ๊ด€๋ฆฌ์ž๋กœ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Windows terminal here"
"Icon"="%USERPROFILE%\\AppData\\Local\\terminal\\wt_32.ico"

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="%LOCALAPPDATA%\\Microsoft\\WindowsApps\\wt.exe"

์ฐธ๊ณ ๋กœ , ์ง์ ‘ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•œ ํ›„ ์–ป์€ exe๊ฐ€ wtd.exe ์ธ ๊ฒฝ์šฐ ์œ„ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ์—์„œ ์œ„์˜ wt.exe ๋ฅผ wtd.exe ๋กœ ๋ณ€๊ฒฝํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

4 ๋‹จ๊ณ„ :
ํ…Œ์ŠคํŠธ
image

๊ทธ๊ฒƒ์€ ๋‚˜์—๊ฒŒ ์ž‘๋™ํ•˜์ง€ ์•Š์•˜๊ณ  (์˜ค๋ฅ˜์— ์•ก์„ธ์Šค ํ•  ์ˆ˜ ์—†์Œ) ๋‚˜์—๊ฒŒ๋Š” wtd.exe์˜€์Šต๋‹ˆ๋‹ค (์ž‘๋™ํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค).
๊ทธ๋ฆฌ๊ณ  ์ด๊ฒƒ์ด ํ„ฐ๋ฏธ๋„ ๊ธฐ๋Šฅ์ด๋ผ๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค.

ํ—‰
์ง์ ‘ ๋งŒ๋“  ๋ฒ„์ „์„ ์‚ฌ์šฉํ•œ ๊ฒƒ ๊ฐ™์œผ๋ฏ€๋กœ wtd.exe ๋ฅผ ์‚ฌ์šฉํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค. ๋“ค์–ด์˜ค๋Š” ๊ณต์‹ ๋ฒ„์ „์ด Windows Store ์— ๋“ค์–ด๊ฐ€๋ ค๋ฉด ์—ฌ๊ธฐ์—์„œ wt.exe ์ด ์˜ฌ๋ฐ”๋ฅธ ์˜ต์…˜์ž…๋‹ˆ๋‹ค. ์ง€๊ธˆ์€ ์—ฌ๊ธฐ์—์„œ ๋ฏธ๋ฆฌ๋ณด๊ธฐ ๋ฒ„์ „์„ ๊ตฌํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค ( https://github.com/yanglr/WindowsDevTools/tree/master/awosomeTerminal ์•„๋ž˜์˜ .7z ํŒŒ์ผ), ์„ค์น˜ ํ›„ wt.exe ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋‚˜๋Š”์ด ๋ฐฉ๋ฒ•์„ ์ฑ„ํƒํ–ˆ๋‹ค.

@yanglr ๋‚ด๊ฐ€

ํ—‰
Debug mode ์—์„œ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•œ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. Release mode ๋กœ ๋ณ€๊ฒฝํ•˜์‹ญ์‹œ์˜ค. ์•„๋ž˜๋ฅผ ์ฐธ์กฐํ•˜์‹ญ์‹œ์˜ค.
image

@yanglr
์ด๋ฏธ ๋ฆด๋ฆฌ์Šค์—์„œ ๋นŒ๋“œ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.
image

๊ธฐ๋ก์„ ์œ„ํ•ด ํ„ฐ๋ฏธ๋„์ด ์‚ฌ์šฉ์ž๋ฅผ ๋Œ€์‹ ํ•˜์—ฌ์ด ๋ฐ”๋กœ ๊ฐ€๊ธฐ๋ฅผ ์ž๋™์œผ๋กœ ๋“ฑ๋กํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.

@ zadjii-msft
๋ฉ‹์ง€๋‹ค!

์ด๊ฒƒ์€ ์•„์ง ์ถ”๊ฐ€๋˜์ง€ ์•Š์•˜์œผ๋ฏ€๋กœ ์ถ”๊ฐ€ ์ž‘์—…์ด ์™„๋ฃŒ ๋  ๋•Œ๊นŒ์ง€์ด ๋ฌธ์ œ๋ฅผ ์—ด์–ด ๋‘๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค. :)

์•„๋ฌด๋„ ์ž‘์—…ํ•˜์ง€ ์•Š์œผ๋ฉด์ด ๊ธฐํšŒ๋ฅผ ์ค„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

@MelulekiDube ๋Š” ๊ทธ๊ฒƒ์„ ์œ„ํ•ด ๊ฐ€์‹ญ์‹œ์˜ค!

์—ฌ๊ธฐ์„œ์˜ ์ฃผ์š” ํŒ์€ TerminalApp์„ UWP์™€ ๋น„์Šทํ•˜๊ฒŒ ์œ ์ง€ํ•˜๊ณ  WindowsTerminal ํ”„๋กœ์ ํŠธ์—์„œ Win32์™€ ๊ฐ™์€ ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•˜๋ ค๊ณ  ๋…ธ๋ ฅํ•˜๊ณ  ์žˆ๋‹ค๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์ด ๊ธฐ๋Šฅ์€ ์•„๋งˆ๋„ Win32 ๋ฌด๊ฒ๊ธฐ ๋•Œ๋ฌธ์— App (TerminalApp์—์„œ)๊ฐ€ AppHost (WindowsTerminal์—์„œ)์— ์„ค์ •ํ•ด์•ผ ํ•จ์„ ์•Œ๋ฆฌ๊ธฐ ์œ„ํ•ด ์‹คํ–‰๋  ์ˆ˜์žˆ๋Š” ์ผ์ข…์˜ ์ด๋ฒคํŠธ๋ฅผ ์ œ์•ˆ ํ•  ๊ฒƒ์ž…๋‹ˆ๋‹ค. ๋ฐ”๋กœ ๊ฐ€๊ธฐ. ์˜ˆ๋ฅผ ๋“ค์–ด, App ๊ฐ€ AppHost ๊ฐ€ ์ฐฝ์˜ ์ œ๋ชฉ์„ ์„ค์ •ํ•˜๋„๋ก ํ•  ์ˆ˜์žˆ๋Š” ์ด๋ฒคํŠธ TitleChanged ์žˆ๋‹ค๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค.

๋˜ํ•œ Profile ์€ winrt ์œ ํ˜•์ด ์•„๋‹ˆ๊ธฐ ๋•Œ๋ฌธ์— WindowsTerminal ํ”„๋กœ์ ํŠธ์—์„œ ๋ฉค๋ฒ„๋ฅผ ์ง์ ‘ ๊ฐ€์ ธ ์˜ค๋Š” ๊ฒƒ์ด ์–ด๋ ค์šธ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. App ๊ฐ€ ์ด๋ฒคํŠธ ์ž์ฒด์—์„œ Profile ์˜ ๊ด€๋ จ ๋น„ํŠธ๋ฅผ ์ „๋‹ฌํ•˜๋„๋กํ•ด์•ผ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋˜๋Š” winrt ์œ ํ˜• (.idl ํŒŒ์ผ๋กœ ์™„๋ฃŒ)์œผ๋กœ ๋งŒ๋“ค ์ˆ˜ ์žˆ์ง€๋งŒ ์กฐ๊ธˆ ๋” ์–ด๋ ค์šธ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

ํ–‰์šด์„ ๋น•๋‹ˆ๋‹ค!

ํŽธ์ง‘ :์ด ์ง„์ˆ ์„ HERE BE DRAGONS ๋กœ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค. ์ด ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•˜๊ธฐ ์ „์— # 607 / # 1065์—์„œ ์ˆ˜ํ–‰ํ•ด์•ผ ํ•  ์ž‘์—…์ด ์žˆ์Šต๋‹ˆ๋‹ค.

๋‚˜๋Š” ์ด๊ฒƒ์ด ์•„์ง ์‚ฌ์ „ ์‚ฌ์–‘ ๋‹จ๊ณ„์—์žˆ๋Š” # 607๊ณผ ๋งค์šฐ ๋ฐ€์ ‘ํ•˜๊ฒŒ ์—ฐ๊ฒฐ๋˜์–ด์•ผ ํ•  ๊ฒƒ์œผ๋กœ ์šฐ๋ ค๋ฉ๋‹ˆ๋‹ค.

@ DHowett-MSFT๋Š” ์ข‹์€ ์ง€์ ์ž…๋‹ˆ๋‹ค. ๋‚˜๋Š” ๋˜ํ•œ # 1065์˜ ์ตœ๊ทผ ํšŒ๊ท€๋ฅผ ์žŠ์—ˆ๋‹ค. ์ด๊ฒƒ์€ ์‹ค์ œ๋กœ _hard_ things์˜ ๋ฒ”์ฃผ์— ์†ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ํ”„๋กœํ•„๋ณ„๋กœํ•˜์ง€ ์•Š๋”๋ผ๋„ ํ˜„์žฌ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ๊ธฐ๋ณธ ํ”„๋กœํ•„์„ ์—ด๋ฉด ์ž‘๋™ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

๋‚˜๋Š” ์šฐ๋ฆฌ๊ฐ€ # 1065๋ฅผ ์–ด๋–ป๊ฒŒ ๊ณ ์น  ์ง€์กฐ์ฐจ ๋ชจ๋ฅธ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ์šฐ๋ฆฌ๊ฐ€ ๊ทธ๊ฒƒ์„ ๊ณ ์น˜๋ฉด ์ด๋ก ์ ์œผ๋กœ ์šฐ๋ฆฌ๋Š” ํƒ์ƒ‰๊ธฐ์˜ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ƒˆ๋กœ์šด Windows Terminal ์ธ์Šคํ„ด์Šค๋ฅผ ์ƒ์„ฑ ํ•  ์ˆ˜์žˆ๋Š” ๋ฐฉ๋ฒ•์„ ์ฐพ์„ ์ˆ˜์žˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ๊ทธ๊ฒƒ์€ ์‹ค์ œ๋กœ per -ํ”„๋กœํ•„ ๋ฌธ์ œ. ํ .

staringDirectory๋ฅผ ๋…ธ์ถœํ•˜์—ฌ exe์— ์˜ต์…˜์„ ์ „๋‹ฌํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

์˜ˆ, ๊ทธ๊ฒƒ์€ # 607์˜ ์š”์  ์ค‘ ์ผ๋ถ€์ž…๋‹ˆ๋‹ค.

์•ˆ๋…•ํ•˜์„ธ์š” @yanglr ,
์ด๊ฒƒ์€ ํ† ๋ก ์„ํ•˜๊ธฐ์— ์ ์ ˆํ•œ ์žฅ์†Œ๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค. ์ด ๋ฌธ์ œ๋Š” "์—ฌ๊ธฐ์—์„œ Windows ํ„ฐ๋ฏธ๋„ ์—ด๊ธฐ"๊ธฐ๋Šฅ์„ ๋…ผ์˜ํ•˜๊ธฐ์œ„ํ•œ ๊ฒƒ์ž…๋‹ˆ๋‹ค.

@ DHowett-MSFT
์ฃ„์†กํ•ฉ๋‹ˆ๋‹ค. ์‚ญ์ œ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

"์—ฌ๊ธฐ์—์„œ Windows ํ„ฐ๋ฏธ๋„ ์—ด๊ธฐ"๋ฟ๋งŒ ์•„๋‹ˆ๋ผ "์—ฌ๊ธฐ์—์„œ Windows ํ„ฐ๋ฏธ๋„ ์—ด๊ธฐ (๊ด€๋ฆฌ์ž)"๋„ ๋ชจ๋‘ ์‚ฌ์šฉํ•˜๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

์ด๋ ‡๊ฒŒ ์ƒ๊ฐํ•˜๊ณ  ์žˆ์—ˆ๋Š”๋ฐ
image
.. ๊ทธ๋ฆฌ๊ณ  ๋‚ด๊ฐ€ ์ƒ๊ฐํ–ˆ๋˜ ๊ฒƒ๊ณผ ๊ฐ™์œผ๋ฉด ๊ด€๋ฆฌ์ž๋กœ ์‹คํ–‰ํ•  ๊ณณ์ด์—†๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

์ด๋ ‡๊ฒŒ ์ƒ๊ฐํ•˜๊ณ  ์žˆ์—ˆ๋Š”๋ฐ
image
.. ๊ทธ๋ฆฌ๊ณ  ๋‚ด๊ฐ€ ์ƒ๊ฐํ–ˆ๋˜ ๊ฒƒ๊ณผ ๊ฐ™์œผ๋ฉด ๊ด€๋ฆฌ์ž๋กœ ์‹คํ–‰ํ•  ๊ณณ์ด์—†๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

... ๋™์ผํ•œ ํ•˜์œ„ ๋ฉ”๋‰ด ํ•ญ๋ชฉ์ด์žˆ๋Š” ๋‘ ๋ฒˆ์งธ ๊ธฐ๋ณธ ๋ฉ”๋‰ด "์—ฌ๊ธฐ์— WT ์—ด๊ธฐ (๊ด€๋ฆฌ์ž)"๋ฅผ ๋„ฃ์ง€ ์•Š๋Š” ํ•œ. ์–ด์จŒ๋“  ๋‘˜ ๋‹ค ์„ ํƒ ์‚ฌํ•ญ์ด์–ด์•ผํ•œ๋‹ค๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค.

์ƒํ™ฉ์— ๋งž๋Š” ๋ฉ”๋‰ด์— ์˜ต์…˜์„ ์ถ”๊ฐ€ํ•˜๊ธฐ ์œ„ํ•ด ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ๋ฅผ ํŽธ์ง‘ํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ํ˜„์žฌ ๋””๋ ‰ํ„ฐ๋ฆฌ ๋Œ€์‹  C : \ Users \ username์œผ๋กœ ์—ด๋ฆฝ๋‹ˆ๋‹ค.

๋ฟก ๋นต๋€จ

๋‚˜๋Š” ์ด๊ฒƒ์ด ์•„์ง ์‚ฌ์ „ ์‚ฌ์–‘ ๋‹จ๊ณ„์—์žˆ๋Š” # 607๊ณผ ๋งค์šฐ ๋ฐ€์ ‘ํ•˜๊ฒŒ ์—ฐ๊ฒฐ๋˜์–ด์•ผ ํ•  ๊ฒƒ์œผ๋กœ ์šฐ๋ ค๋ฉ๋‹ˆ๋‹ค.

staringDirectory๋ฅผ ๋…ธ์ถœํ•˜์—ฌ exe์— ์˜ต์…˜์„ ์ „๋‹ฌํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

์˜ˆ, ๊ทธ๊ฒƒ์€ # 607์˜ ์š”์  ์ค‘ ์ผ๋ถ€์ž…๋‹ˆ๋‹ค.

wt.exe ์€ ์•„์ง ๋ช…๋ น ์ค„ ์ธ์ˆ˜๋ฅผ ์ง€์›ํ•˜์ง€ ์•Š์œผ๋ฏ€๋กœ ์ƒˆ ํ”„๋กœํ•„์ด ์‹œ์ž‘๋˜๋Š” ํด๋”๋ฅผ ์žฌ์ •์˜ ํ•  ๋ฐฉ๋ฒ•์ด ์—†์Šต๋‹ˆ๋‹ค.

์ œ๊ฐ€ ์ œ์•ˆ์„ํ•œ๋‹ค๋ฉด, Windows ํ„ฐ๋ฏธ๋„์ด ์„ธ ๊ฐ€์ง€์˜ ์กฐํ•ฉ์ด๊ธฐ ๋•Œ๋ฌธ์— powershell, CMD ๋ฐ / ๋˜๋Š” Linux ํ„ฐ๋ฏธ๋„์—์„œ ์—ด๊ธฐ ์˜ต์…˜์„ "Windows ํ„ฐ๋ฏธ๋„์—์„œ ์—ด๊ธฐ"๋กœ ๋Œ€์ฒดํ•ด์•ผํ•œ๋‹ค๊ณ  ๋งํ•˜๊ณ  ์‹ถ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฐ ๋‹ค์Œ ์‚ฌ์šฉ์ž๋Š” profile.json ํŒŒ์ผ์—์„œ ๊ธฐ๋ณธ๊ฐ’์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

ํŠธ์œ— ๋‹ด์•„ ๊ฐ€๊ธฐ

์ง€๊ธˆ์€ ์ด์™€ ๊ฐ™์€ ๊ฒƒ์ด ์ž‘๋™ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค. Post-Install Windows ISO ์Šคํฌ๋ฆฝํŠธ ์šฉ์ด๊ธฐ ๋•Œ๋ฌธ์— PowerShell์—์„œ ์ž‘์„ฑํ–ˆ์ง€๋งŒ .reg ํŒŒ์ผ์ด ์•„๋‹Œ ์ด๊ฒƒ์„ ์‚ฌ์šฉํ•˜๋Š” ๋ฐ ๋ฌธ์ œ๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.

PowerShell :

$Env.terminalDir ='$Env:localAppDir\Microsoft\WindowsApps' # Not really needed (except for icon), as wt.exe in in %PATH%

Invoke-WebRequest -UseBasicParsing "https://github.com/yanglr/WindowsDevTools/raw/master/awosomeTerminal/icons/wt_32.ico" -OutFile "$Env:terminalDir\wt.ico"  # Going to update my own to just grab icon from the appx package

Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\Background\shell\MenuTerminal' -Name 'MUIVerb' -Type String -Value 'Terminals'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\Background\shell\MenuTerminal' -Name 'Icon' -Type String -Value '$Env:terminalDir\wt.ico'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\Background\shell\MenuTerminal' -Name 'ExtendedSubCommandsKey' -Type String -Value 'Directory\\ContextMenus\\MenuTerminal'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\shell\open' -Name 'MUIVerb' -Type String -Value 'PowerShell'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\shell\open' -Name 'Icon' -Type String -Value 'PowerShell.exe'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\shell\open' -Name 'ExtendedSubCommandsKey' -Type String -Value 'Directory\\ContextMenus\\MenuTerminal\\PS'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\PS\shell\open' -Name 'MUIVerb' -Type String -Value 'PowerShell'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\PS\shell\open' -Name 'Icon' -Type String -Value '$Env:terminalDir\wt.ico'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\PS\shell\open\command' -Name '@' -Type String -Value 'wt.exe'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\PS\shell\runas' -Name 'MUIVerb' -Type String -Value 'Elevated PowerShell'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\PS\shell\runas' -Name 'Icon' -Type String -Value '$Env:terminalDir\wt.ico'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\PS\shell\runas' -Name 'HasLUAShield' -Type String -Value ''
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\PS\shell\runas\command'-Name '@' -Type String -Value 'wt.exe'

ํ„ฐ๋ฏธ๋„์„ ์‹œ์ž‘ํ•  ๋•Œ CMD์™€ PowerShell ์ค‘์—์„œ ์„ ํƒํ•  ์ˆ˜์žˆ์„ ๋•Œ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ž‘๋™ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค ( --Profile [CMD | PowerShell]์„ ์‚ฌ์šฉํ•œ๋‹ค๊ณ  ๊ฐ€์ •).

Powershell :

$Env.terminalDir ='$Env:localAppDir\Microsoft\WindowsApps'   # Not really needed (except for icon), as wt.exe in in %PATH%

Invoke-WebRequest -UseBasicParsing "https://github.com/yanglr/WindowsDevTools/raw/master/awosomeTerminal/icons/wt_32.ico" -OutFile "$Env:terminalDir\wt.ico"  # Going to update my own to just grab icon from the appx package

Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\Background\shell\MenuTerminal' -Name 'MUIVerb' -Type String -Value 'Terminals'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\Background\shell\MenuTerminal' -Name 'Icon' -Type String -Value '$Env:terminalDir\wt.ico'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\Background\shell\MenuTerminal' -Name 'ExtendedSubCommandsKey' -Type String -Value 'Directory\\ContextMenus\\MenuTerminal'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\shell\open' -Name 'MUIVerb' -Type String -Value 'Command Prompt'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\shell\open' -Name 'Icon' -Type String -Value 'cmd.exe'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\shell\open' -Name 'ExtendedSubCommandsKey' -Type String -Value 'Directory\\ContextMenus\\MenuTerminal\\CMD'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\CMD\shell\open' -Name 'MUIVerb' -Type String -Value 'Command Prompt'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\CMD\shell\open' -Name 'Icon' -Type String -Value '$Env:terminalDir\wt.ico'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\CMD\shell\open\command' -Name '@' -Type String -Value 'wt.exe --profile CMD'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\CMD\shell\runas' -Name 'MUIVerb' -Type String -Value 'Elevated Terminal'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\CMD\shell\runas' -Name 'Icon' -Type String -Value '$Env:terminalDir\wt.ico'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\CMD\shell\runas' -Name 'HasLUAShield' -Type String -Value ''
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\CMD\shell\runas\command'-Name '@' -Type String -Value 'wt.exe --profile CMD'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\shell\open' -Name 'MUIVerb' -Type String -Value 'PowerShell'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\shell\open' -Name 'Icon' -Type String -Value 'PowerShell.exe'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\shell\open' -Name 'ExtendedSubCommandsKey' -Type String -Value 'Directory\\ContextMenus\\MenuTerminal\\PS'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\PS\shell\open' -Name 'MUIVerb' -Type String -Value 'PowerShell'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\PS\shell\open' -Name 'Icon' -Type String -Value '$Env:terminalDir\wt.ico'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\PS\shell\open\command' -Name '@' -Type String -Value 'wt.exe --profile PowerShell'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\PS\shell\runas' -Name 'MUIVerb' -Type String -Value 'Elevated PowerShell'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\PS\shell\runas' -Name 'Icon' -Type String -Value '$Env:terminalDir\wt.ico'
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\PS\shell\runas' -Name 'HasLUAShield' -Type String -Value ''
Set-ItemProperty-Path 'HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuTerminal\PS\shell\runas\command'-Name '@' -Type String -Value 'wt.exe --Profile PowerShell'

@yanglr ๋‹จ๊ณ„๋ฅผ ๋”ฐ๋ž๋Š”๋ฐ ์˜ค๋ฅธ์ชฝ ๋ฒ„ํŠผ ๋ฉ”๋‰ด๊ฐ€ ๋‚˜ํƒ€๋‚˜์ง€๋งŒ ํด๋ฆญํ•˜๋ฉด explorer.exe๊ฐ€ "Windows๊ฐ€ ์ง€์ •๋œ ์žฅ์น˜, ๊ฒฝ๋กœ ๋˜๋Š” ํŒŒ์ผ์— ์•ก์„ธ์Šค ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ํ•ญ๋ชฉ์— ์•ก์„ธ์Šค ํ•  ์ˆ˜์žˆ๋Š” ์ ์ ˆํ•œ ๊ถŒํ•œ์ด ์—†์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."๋ผ๊ณ  ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. ์ง€์ •๋œ ์žฅ์น˜, ๊ฒฝ๋กœ ๋˜๋Š” ํŒŒ์ผ์— ์•ก์„ธ์Šคํ•ฉ๋‹ˆ๋‹ค. ํ•ญ๋ชฉ์— ์•ก์„ธ์Šค ํ•  ์ˆ˜์žˆ๋Š” ์ ์ ˆํ•œ ๊ถŒํ•œ์ด ์—†์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

cmd ํ”„๋กฌํ”„ํŠธ์—์„œ "% LOCALAPPDATA % \ Microsoft \ WindowsApps \ wt.exe"๋ฅผ ์‹คํ–‰ํ•˜๋ฉด ์˜ˆ์ƒ๋Œ€๋กœ ์ƒˆ ํ„ฐ๋ฏธ๋„์ด ์—ด๋ฆฌ๊ณ  msys, wsl-terminal์— ๋Œ€ํ•ด ์œ ์‚ฌํ•œ ์„ค์ •์ด ์žˆ์œผ๋ฉฐ ๋ชจ๋‘ ์ž˜ ์ž‘๋™ํ•˜๊ณ  Windows ํ„ฐ๋ฏธ๋„ ๋งŒ ์ž‘๋™ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

@ chen-xin ์ด๊ฒƒ์€ ์•ก์„ธ์Šค ์˜ค๋ฅ˜์— ๋Œ€ํ•ด ๋‚˜๋ฅผ ์œ„ํ•ด ์ผํ•œ ๊ฒƒ์ž…๋‹ˆ๋‹ค.
https://github.com/microsoft/terminal/issues/1060#issuecomment -497539461๊ณผ ๋™์ผํ•œ ๋‹จ๊ณ„๋ฅผ ๋”ฐ๋ฆ…๋‹ˆ๋‹ค.
๊ทธ๋Ÿฌ๋‚˜ wt.exe ๊ฒฝ๋กœ์˜ ๊ฒฝ์šฐ %LOCALAPPDATA% ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๋Œ€์‹  C:\\Users\\[your_user_acc]\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe ์™€ ๊ฐ™์€ ์‹ค์ œ ์ „์ฒด ๊ฒฝ๋กœ๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

๋˜ํ•œ ์„ค์ •์— startingDirectory ๋ฅผ ์ถ”๊ฐ€ํ•˜์ง€ ๋งˆ์‹ญ์‹œ์˜ค.

@saisandeepvaddi fullpath์—์„œ ์ž‘์—…ํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!

@miniksa @ zadjii-msft @ DHowett-MSFT @factormystic @ChrisGuzak

์ด์ œ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ–ˆ์Šต๋‹ˆ๋‹ค. ์ข…๊ฒฐ ๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ํ† ๋ก ์— ์ฐธ์—ฌํ•ด ์ฃผ์‹  ๋ชจ๋“  ๋ถ„๋“ค๊ป˜ ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

0 ๋‹จ๊ณ„ :

์•„๋ž˜์˜ ๋‘ ๊ฐ€์ง€ ์ƒ์ˆ˜๊ฐ€ ์ž˜ ์ž‘๋™ํ•˜๋Š”์ง€ ํ…Œ์ŠคํŠธํ•˜์—ฌ ๋‹ค๋ฅธ ๋‹จ๊ณ„๋ฅผ ๋”ฐ๋ฅด๋Š” ๋ฐ ์‚ฌ์šฉ๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค.

echo %USERPROFILE%

echo %LOCALAPPDATA%

์—ฌ๊ธฐ์„œ ๋ชจ๋“  ๊ฒƒ์ด ์ž˜ ์ž‘๋™ํ•˜๋ฉด์ด ๋‘ ์ƒ์ˆ˜๋ฅผ ๋‹ค๋ฅธ ์•„๋ž˜ ๋‹จ๊ณ„์—์„œ ์ง์ ‘ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋˜๋Š” ์•„๋ž˜ ๋‹จ๊ณ„์—์„œ ๋‹ค์Œ ๊ต์ฒด๋ฅผ ์ˆ˜ํ–‰ํ•˜์‹ญ์‹œ์˜ค.

% USERPROFILE % โ†’ C:\Users\[userName]
% LOCALAPPDATA % โ†’ C:\Users\[userName]\AppData\Local

์—ฌ๊ธฐ์„œ [userName] ๋Š” ์‚ฌ์šฉ์ž ์ด๋ฆ„์„ ๋‚˜ํƒ€๋ƒ…๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, ๋‚ด ์ด๋ฆ„์€ Bruce ์ž…๋‹ˆ๋‹ค.

1 ๋‹จ๊ณ„:
CMD ์—์„œ ์•„๋ž˜ ํ•ญ๋ชฉ ์‹คํ–‰ :

mkdir "%USERPROFILE%\AppData\Local\terminal"

image

2 ๋‹จ๊ณ„:
Windows ํ„ฐ๋ฏธ๋„ ์•„์ด์ฝ˜์„ %USERPROFILE%\AppData\Local\terminal ํด๋”์— ๋ณต์‚ฌํ•ฉ๋‹ˆ๋‹ค. ์•„์ด์ฝ˜์€ https://github.com/yanglr/WindowsDevTools/tree/master/awosomeTerminal/icons ์—์„œ ์–ป์„ ์ˆ˜ ์žˆ์œผ๋ฉฐ ํŒŒ์ผ ์ด๋ฆ„์€ wt_32.ico .

3 ๋‹จ๊ณ„ :
๋‹ค์Œ ์ฝ˜ํ…์ธ ๋ฅผ wt.reg ๋กœ ์ €์žฅ ํ•œ ๋‹ค์Œ ๊ด€๋ฆฌ์ž๋กœ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Windows terminal here"
"Icon"="%USERPROFILE%\\AppData\\Local\\terminal\\wt_32.ico"

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="%LOCALAPPDATA%\\Microsoft\\WindowsApps\\wt.exe"

์ฐธ๊ณ ๋กœ , ์ง์ ‘ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•œ ํ›„ ์–ป์€ exe๊ฐ€ wtd.exe ์ธ ๊ฒฝ์šฐ ์œ„ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ์—์„œ ์œ„์˜ wt.exe ๋ฅผ wtd.exe ๋กœ ๋ณ€๊ฒฝํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

4 ๋‹จ๊ณ„ :
ํ…Œ์ŠคํŠธ
image

image

๋‚˜๋Š” ๋‹น์‹ ์˜ ์ง€์‹œ๋ฅผ ๋”ฐ๋ž์ง€๋งŒ์ด ์˜ค๋ฅ˜๋Š” _Windows ํ„ฐ๋ฏธ๋„ ์—ฌ๊ธฐ์—์„œ ์‹œ์ž‘ํ•˜๋Š” ๋ชจ๋“  ๊ณณ์—์„œ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

@Villivateur ๋‹น์‹ ์€ https://github.com/microsoft/terminal/issues/1060#issuecomment -515134618

@miniksa @ zadjii-msft @ DHowett-MSFT @factormystic @ChrisGuzak
์ด์ œ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ–ˆ์Šต๋‹ˆ๋‹ค. ์ข…๊ฒฐ ๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ํ† ๋ก ์— ์ฐธ์—ฌํ•ด ์ฃผ์‹  ๋ชจ๋“  ๋ถ„๋“ค๊ป˜ ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค.
0 ๋‹จ๊ณ„ :
์•„๋ž˜์˜ ๋‘ ๊ฐ€์ง€ ์ƒ์ˆ˜๊ฐ€ ์ž˜ ์ž‘๋™ํ•˜๋Š”์ง€ ํ…Œ์ŠคํŠธํ•˜์—ฌ ๋‹ค๋ฅธ ๋‹จ๊ณ„๋ฅผ ๋”ฐ๋ฅด๋Š” ๋ฐ ์‚ฌ์šฉ๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค.

echo %USERPROFILE%

echo %LOCALAPPDATA%

์—ฌ๊ธฐ์„œ ๋ชจ๋“  ๊ฒƒ์ด ์ž˜ ์ž‘๋™ํ•˜๋ฉด์ด ๋‘ ์ƒ์ˆ˜๋ฅผ ๋‹ค๋ฅธ ์•„๋ž˜ ๋‹จ๊ณ„์—์„œ ์ง์ ‘ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
๋˜๋Š” ์•„๋ž˜ ๋‹จ๊ณ„์—์„œ ๋‹ค์Œ ๊ต์ฒด๋ฅผ ์ˆ˜ํ–‰ํ•˜์‹ญ์‹œ์˜ค.
% USERPROFILE % โ†’ C:\Users\[userName]
% LOCALAPPDATA % โ†’ C:\Users\[userName]\AppData\Local
์—ฌ๊ธฐ์„œ [userName] ๋Š” ์‚ฌ์šฉ์ž ์ด๋ฆ„์„ ๋‚˜ํƒ€๋ƒ…๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, ๋‚ด ์ด๋ฆ„์€ Bruce ์ž…๋‹ˆ๋‹ค.
1 ๋‹จ๊ณ„:
CMD ์—์„œ ์•„๋ž˜ ํ•ญ๋ชฉ ์‹คํ–‰ :

mkdir "%USERPROFILE%\AppData\Local\terminal"

image
2 ๋‹จ๊ณ„:
Windows ํ„ฐ๋ฏธ๋„ ์•„์ด์ฝ˜์„ %USERPROFILE%\AppData\Local\terminal ํด๋”์— ๋ณต์‚ฌํ•ฉ๋‹ˆ๋‹ค. ์•„์ด์ฝ˜์€ https://github.com/yanglr/WindowsDevTools/tree/master/awosomeTerminal/icons ์—์„œ ์–ป์„ ์ˆ˜ ์žˆ์œผ๋ฉฐ ํŒŒ์ผ ์ด๋ฆ„์€ wt_32.ico .
3 ๋‹จ๊ณ„ :
๋‹ค์Œ ์ฝ˜ํ…์ธ ๋ฅผ wt.reg ๋กœ ์ €์žฅ ํ•œ ๋‹ค์Œ ๊ด€๋ฆฌ์ž๋กœ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Windows terminal here"
"Icon"="%USERPROFILE%\\AppData\\Local\\terminal\\wt_32.ico"

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="%LOCALAPPDATA%\\Microsoft\\WindowsApps\\wt.exe"

์ฐธ๊ณ ๋กœ , ์ง์ ‘ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•œ ํ›„ ์–ป์€ exe๊ฐ€ wtd.exe ์ธ ๊ฒฝ์šฐ ์œ„ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ์—์„œ ์œ„์˜ wt.exe ๋ฅผ wtd.exe ๋กœ ๋ณ€๊ฒฝํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.
4 ๋‹จ๊ณ„ :
ํ…Œ์ŠคํŠธ
image

image

๋‚˜๋Š” ๋‹น์‹ ์˜ ์ง€์‹œ๋ฅผ ๋”ฐ๋ž์ง€๋งŒ์ด ์˜ค๋ฅ˜๋Š” _Windows ํ„ฐ๋ฏธ๋„ ์—ฌ๊ธฐ์—์„œ ์‹œ์ž‘ํ•˜๋Š” ๋ชจ๋“  ๊ณณ์—์„œ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

@saisandeepvaddi metioned์ฒ˜๋Ÿผ
wt.exe ๊ฒฝ๋กœ์˜ ๊ฒฝ์šฐ %LOCALAPPDATA% ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๋Œ€์‹  C:\\Users\\[your_user_acc]\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe ์™€ ๊ฐ™์€ ์‹ค์ œ ์ „์ฒด ๊ฒฝ๋กœ๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

๋˜ํ•œ ์„ค์ •์— startingDirectory ์„ ์ถ”๊ฐ€ํ•˜์ง€ ๋งˆ์‹ญ์‹œ์˜ค.

๋‚ด PC์—์„œ ์ž˜ ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค. ์‹œ๋„ํ•ด ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์•ž์—์„œ ์„ค๋ช…ํ•œ๋Œ€๋กœ wt.exe๋ฅผ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ์— ์ถ”๊ฐ€ํ•˜๋ ค๊ณ ํ–ˆ์ง€๋งŒ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.
image

ํ„ฐ๋ฏธ๋„์€ ์ •์ƒ์ ์œผ๋กœ ๋ช…๋ น ์ค„ (Win + R | "wt")์—์„œ ์‹œ์ž‘๋ฉ๋‹ˆ๋‹ค.

์ƒˆ๋กœ์šด ํ„ฐ๋ฏธ๋„์˜ ์ปค์Šคํ„ฐ๋งˆ์ด์ง•์ด ์žฅ์ ์ด๋ผ๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค. ์ด๊ฒƒ์ด ์„ค์ •์— ์žˆ๋‹ค๋ฉด ์–ด๋–จ๊นŒ์š”? "ExplorerIntegration": true ๋ผ๊ณ  ๋งํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋Ÿฐ ๋‹ค์Œ ๋ฐฐ์น˜ ์Šคํฌ๋ฆฝํŠธ๊ฐ€ FluentTerminal ํ”„๋กœ์ ํŠธ์—์„œ์™€ ๊ฐ™์ด ์ถ”๊ฐ€ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ด๋ด, ๋‚˜๋Š” ํŠน์ • ์˜ค๋ฅธ์ชฝ ํด๋ฆญ ํด๋”์—์„œ Windows ํ„ฐ๋ฏธ๋„์„ ์—ด ์ˆ˜ ์žˆ๋‹ค๋Š” ๊ฒƒ์— ๋Œ€ํ•ด ์•ฝ๊ฐ„์˜ ํ•ดํ‚น์„ ๋ณด๋ƒˆ๊ณ  ๋ˆ„๊ตฐ๊ฐ€์—๊ฒŒ ํฅ๋ฏธ๋กญ๊ณ  ์œ ์šฉ ํ•  ๊ฒƒ์ด๋ผ๊ณ  ์ƒ๊ฐํ–ˆ์Šต๋‹ˆ๋‹ค. ์ด๊ฒƒ์€ CMD๊ฐ€ ์•„๋‹Œ Linux ํ•˜์œ„ ์‹œ์Šคํ…œ์œผ๋กœ ์ „ํ™˜ ํ•  ๋•Œ๋„ ์ž‘๋™ํ•˜๋Š” ๊ฒƒ์ฒ˜๋Ÿผ ๋ณด์ž…๋‹ˆ๋‹ค. ๋˜ํ•œ powershell ํ”„๋กœํ•„์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ณ  $ env๋ฅผ ์•ฝ๊ฐ„ ๋” ์ข‹์€ ์ด๋ฆ„์œผ๋กœ ์‚ฌ์šฉํ•˜์—ฌ ์„ธ ๊ฐ€์ง€์—์„œ ์‚ฌ์šฉํ•  ๋ณ€์ˆ˜๋ฅผ ์–ป์„ ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.

์œ„์˜ ๊ฐ€์ด๋“œ๋ฅผ ๋”ฐ๋ž๋‹ค ๊ณ  ๊ฐ€์ •ํ•˜๋ฉด ๋‘ ๊ฐœ์˜ ์ถ”๊ฐ€ ํŒŒ์ผ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

C : \ Users \ [์‚ฌ์šฉ์ž ์ด๋ฆ„] AppData \ Local \ terminal \ launchwt.bat

set wt_powershell_dir=%cd%
start %LOCALAPPDATA%\\Microsoft\\WindowsApps\\wt.exe
exit

C : \ Users \ [์‚ฌ์šฉ์ž ์ด๋ฆ„] \ Documents \ WindowsPowerShell \ Microsoft.PowerShell_profile.ps1

if (Test-Path $env:wt_powershell_dir) {
   cd $env:wt_powershell_dir
   Remove-Item Env:\wt_powershell_dir
}

๋˜ํ•œ ์„ค์น˜ ํ•œ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ํ‚ค๋กœ ์ด๋™ํ•˜์—ฌ ๋ฐฐ์น˜ ํŒŒ์ผ์„ ๊ฐ€๋ฆฌ ํ‚ค๋„๋ก ์—…๋ฐ์ดํŠธํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

Computer\HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command

C:\Users\[Your Username]\AppData\Local\terminal\launchwt.bat

์ง€๊ธˆ๊นŒ์ง€ ํ„ฐ๋ฏธ๋„์„ ๊ฐ€์ง€๊ณ  ๋…ธ๋Š” ๊ฒƒ์€ ์ฆ๊ฑฐ์› ์Šต๋‹ˆ๋‹ค. ํž™ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค ๐Ÿ˜„.

@minhtuanta ์„ค์ •์—์„œ startingDirectory ์‚ญ์ œ๋ฅผ ์‹œ๋„ํ•ฉ๋‹ˆ๋‹ค. ๐Ÿ˜Š

startingDirectory ์‚ญ์ œ๋Š” ์ €์—๊ฒŒ ํšจ๊ณผ์ ์ž…๋‹ˆ๋‹ค. ์€๋ฐ€ํ•œ ์„ค์ • ๐Ÿ˜›

์˜ค๋ฅธ์ชฝ ํด๋ฆญ ๋ฉ”๋‰ด์˜ ๋Œ€์•ˆ (์ง€๊ธˆ๊นŒ์ง€ ๋ฉ‹์ง„ ์ž‘์—…) : ctrl+l ๋ˆ„๋ฅด๊ฑฐ๋‚˜ ํด๋ฆญ ํ•œ ๋‹ค์Œ wt.exe ๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ํ˜„์žฌ ๋””๋ ‰ํ† ๋ฆฌ์˜ ์ฃผ์†Œ ํ‘œ์‹œ ์ค„์„ ๊ฐ•์กฐ ํ‘œ์‹œํ•˜๋ฉด Windows ํ„ฐ๋ฏธ๋„์ด ์—ด๋ฆฝ๋‹ˆ๋‹ค. ํ•ด๋‹น ๋””๋ ‰ํ† ๋ฆฌ์˜ ๊ธฐ๋ณธ ์‰˜.

@kaeside ๋Š” "ํ„ฐ๋ฏธ๋„์ด ์ด๋ฏธ ์‹คํ–‰์ค‘์ธ ๊ฒฝ์šฐ ์ƒˆ ํƒญ์—์„œ"ํ˜„์žฌ ๋””๋ ‰ํ† ๋ฆฌ์— ๊ธฐ๋ณธ ์…ธ์„ ์ถ”๊ฐ€ํ•˜๋ ค๊ณ ํ•ฉ๋‹ˆ๋‹ค.

github์˜ repo์—์„œ ์‹ค์ œ ์•„์ด์ฝ˜์„ ์–ป์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

@kaeside ์‚ฌ์šฉ์ค‘์ธ ๋ฒ„์ „์ด ํ™•์‹คํ•˜์ง€ ์•Š์ง€๋งŒ ํ•ญ์ƒ์ด ๋ฐฉ๋ฒ•์œผ๋กœ ๋ช…๋ น ํ”„๋กฌํ”„ํŠธ๋ฅผ ์—ด๊ณ  (Alt + D, cmd ) ํ˜„์žฌ ์ž‘์—… ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์—ด๋ฆฌ์ง€ ๋งŒ Windows ํ„ฐ๋ฏธ๋„์˜ ๊ฒฝ์šฐ ํ•ญ์ƒ ์‚ฌ์šฉ์ž ๋””๋ ‰ํ† ๋ฆฌ.
Version: 0.3.2171.0

์˜ˆ, ์ด๊ฒƒ์€์ด ์Šค๋ ˆ๋“œ์˜ ๋‹ค๋ฅธ ์—ฌ๋Ÿฌ ๋Œ“๊ธ€์—์„œ ์–ธ๊ธ‰ ๋œ startingDirectory ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค. ์ˆ˜์ • ์‚ฌํ•ญ์€ # 607์ด๋ฉฐ์ด ์—ญ์‹œ ์–ธ๊ธ‰๋ฉ๋‹ˆ๋‹ค.

์•ž์—์„œ ์„ค๋ช…ํ•œ๋Œ€๋กœ wt.exe๋ฅผ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ์— ์ถ”๊ฐ€ํ•˜๋ ค๊ณ ํ–ˆ์ง€๋งŒ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.
image

ํ„ฐ๋ฏธ๋„์€ ์ •์ƒ์ ์œผ๋กœ ๋ช…๋ น ์ค„ (Win + R | "wt")์—์„œ ์‹œ์ž‘๋ฉ๋‹ˆ๋‹ค.

์ œ ๊ฒฝ์šฐ์—๋Š” wt.exe๊ฐ€ C:\Users\[your_user_name]\AppData\Local\Microsoft\WindowsApps\ ์žˆ์Šต๋‹ˆ๋‹ค.
๊ทธ๋ฆฌ๊ณ  ํ™˜๊ฒฝ ๋ณ€์ˆ˜ % PATH %์˜ ๋ชจ๋“  ํ•ญ๋ชฉ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ตœ๊ทผ์— Windows ํ„ฐ๋ฏธ๋„์„ ๋ฒ„์ „ : 0.5.2661.0์œผ๋กœ ์—…๋ฐ์ดํŠธํ–ˆ์Šต๋‹ˆ๋‹ค.
profiles.json์— "startingDirectory"๊ฐ€ ํฌํ•จ๋˜์–ด ์žˆ์ง€ ์•Š์€ ๊ฒฝ์šฐ์—๋„ ๊ฐ‘์ž๊ธฐ ์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด "์—ฌ๊ธฐ์—์„œ Windows ํ„ฐ๋ฏธ๋„ ์—ด๊ธฐ"๊ฐ€ ํ•ญ์ƒ C:\Users\[username] ์—์„œ ์‹œ์ž‘๋ฉ๋‹ˆ๋‹ค.

์ด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋ ค๋ฉด "startingDirectory": ""๋ฅผ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค. profiles.json์—.
๋น„์Šทํ•œ ๋ฌธ์ œ๋ฅผ ๊ฐ€์ง„ ์‚ฌ๋žŒ์ด ๋„์›€์ด๋˜๊ธฐ๋ฅผ ๋ฐ”๋ž๋‹ˆ๋‹ค.

@yanglr ์˜ ์†”๋ฃจ์…˜์œผ๋กœ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋Š” ๋ฐฐ์น˜ ํŒŒ์ผ์ž…๋‹ˆ๋‹ค. ํŠนํžˆ ํ™˜๊ฒฝ ๋ณ€์ˆ˜๊ฐ€ ์ž‘๋™ํ•˜์ง€ ์•Š๋Š” ์ด์œ ๋Š”์ด๋ฅผ ํฌํ•จํ•˜๋Š” ๋ฌธ์ž์—ด์„ ๊ธฐ๋ณธ REG_SZ๊ฐ€ ์•„๋‹Œ REG_MULTI_SZ๋กœ ์ถ”๊ฐ€ํ•ด์•ผํ•˜๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค.

<strong i="7">@echo</strong> off

reg.exe add "HKEY_CLASSES_ROOT\Directory\Background\shell\wt" /f /ve /d "Windows Terminal here"
reg.exe add "HKEY_CLASSES_ROOT\Directory\Background\shell\wt" /f /v "Icon" /t REG_EXPAND_SZ /d "\"%%USERPROFILE%%\Downloads\terminal.ico\""

reg.exe add "HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command" /f /ve /t REG_EXPAND_SZ /d "\"%%LOCALAPPDATA%%\Microsoft\WindowsApps\wt.exe\""

pause

์œ„์˜ ๋‚ด์šฉ์„ .bat ํŒŒ์ผ๋กœ ๋คํ”„ํ•˜๊ณ  ์•„์ด์ฝ˜ ์œ„์น˜๋ฅผ ์ทจํ–ฅ์— ๋งž๊ฒŒ ์‚ฌ์šฉ์ž ์ •์˜ํ•˜๊ณ  ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์œผ๋กœ ์ €์žฅํ•˜๊ณ  startingDirectory ์„ (๋ฅผ) . ๋กœ ๋ณ€๊ฒฝํ•˜์—ฌ์ด ์ž‘์—…์„ ์˜ˆ์ƒ๋Œ€๋กœ ์ˆ˜ํ–‰ํ•˜๋Š” ๊ฒƒ์— ๋Œ€ํ•œ @rendrap ์˜ ์˜๊ฒฌ์„ ์žŠ์ง€

@IanKemp ์ด์ œ ํ™˜๊ฒฝ ๋ณ€์ˆ˜๊ฐ€ ์ž˜ ์ž‘๋™ํ•˜์ง€๋งŒ ์•ฑ ์Šคํ† ์–ด์˜ ๋งˆ์ง€๋ง‰ ์—…๋ฐ์ดํŠธ ์ดํ›„ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์—ด๋ฆฌ์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๊นŒ?

@poqdavid ๋‚ด๊ฐ€ ์ œ์•ˆ ํ–ˆ๋“ฏ์ด @rendrap ์˜ ์˜๊ฒฌ์„ ์ฝ๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.

๋”ฐ๋ผ์„œ "์—ฌ๊ธฐ์—์„œ Windows ํ„ฐ๋ฏธ๋„ ์—ด๊ธฐ"๋ฅผ ๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ ๋‹จ์ถ”๋กœ ํด๋ฆญํ–ˆ์ง€๋งŒ ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์œผ๋กœ ์‹คํ–‰ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ๋‚˜๋Š” ์šด์ด ์ข‹์ง€ ์•Š๊ณ  ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ์—์„œ runas์™€ runas ๋™์‚ฌ๋ฅผ ์‚ฌ์šฉํ•ด ๋ณด์•˜์Šต๋‹ˆ๋‹ค.

๊ทธ๋Ÿฌ๋‚˜ Windows ํ‚ค-> ํ„ฐ๋ฏธ๋„ ์ž…๋ ฅ-> "๊ด€๋ฆฌ์ž ๊ถŒํ•œ์œผ๋กœ ์‹คํ–‰"์„ ํด๋ฆญํ•˜๋ฉด Windows ํ„ฐ๋ฏธ๋„์ด ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์œผ๋กœ ์‹คํ–‰๋˜๋ฏ€๋กœ ํ™•์‹คํžˆ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.

๊ด€๋ฆฌ์ž๋กœ ์‹œ์ž‘ํ•˜๋„๋ก WT์˜ ํ™˜๊ฒฝ์„ ์„ค์ •ํ•˜๋Š” ๋น„๋ฐ€ ์†Œ์Šค๋Š” ๋ฌด์—‡์ž…๋‹ˆ๊นŒ?

@IanKemp ์ฃผ๋กœ powershell๋กœ ์ž‘์—…ํ•˜๋Š” ๊ฒฝ์šฐ sudo ๋ฅผ ์‚ฌ์šฉํ•ด ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๊ถŒํ•œ์ด ์ƒ์Šน๋˜์ง€ ์•Š์€ PowerShell ์ฐฝ์—์„œ ๊ด€๋ฆฌ์ž๋กœ ๋ช…๋ น์„ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์—ฌ๊ธฐ์— ๋‚ด๊ฐ€ ์‚ฌ์šฉํ•˜๋Š” ํŒŒ์ผ์ด ๊ฒฝ๋กœ๋ฅผ ์—ด์ง€ ์•Š์ง€๋งŒ ์ ์–ด๋„ ๋ฉ‹์ง€๊ฒŒ ๋ณด์ž…๋‹ˆ๋‹ค.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Windows terminal here"
"Icon"="%ProgramFiles%\\WindowsApps\\Microsoft.WindowsTerminal_0.5.2681.0_x64__8wekyb3d8bbwe\\WindowsTerminal.exe"
"Extended"=""

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="C:\\Users\\andre\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe"


[HKEY_CLASSES_ROOT\Directory\shell\wt]
@="Windows terminal here"
"Icon"="%ProgramFiles%\\WindowsApps\\Microsoft.WindowsTerminal_0.5.2681.0_x64__8wekyb3d8bbwe\\WindowsTerminal.exe"
"Extended"=""

[HKEY_CLASSES_ROOT\Directory\shell\wt\command]
@="C:\\Users\\andre\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe"

ํŽธ์ง‘ : ์œ„์—์„œ ์–ธ๊ธ‰ํ–ˆ๋“ฏ์ด ์‹œ์ž‘ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ "."๋กœ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค. ๊ท€ํ•˜์˜ profiles.json

"startingDiretory" : ".",

Ubuntu WSL๊ณผ ํ•จ๊ป˜ Windows ํ„ฐ๋ฏธ๋„์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
"์—ฌ๊ธฐ์—์„œ Windows ํ„ฐ๋ฏธ๋„"์„ ์‚ฌ์šฉํ•˜๋ฉด ๋‚ด๊ฐ€์žˆ๋Š” ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์—ด๋ฆฌ๋„๋ก ๋งŒ๋“ค ์ˆ˜์žˆ๋Š” ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๊นŒ?ํ•˜์ง€๋งŒ Windows ํ„ฐ๋ฏธ๋„์„ ์ •์ƒ์ ์œผ๋กœ ์‹œ์ž‘ํ•˜๋ฉด ์šฐ๋ถ„ํˆฌ๋กœ ๋–จ์–ด์ง‘๋‹ˆ๋‹ค ~?

๊ธฐ๋ณธ์ ์œผ๋กœ ์šฐ๋ถ„ํˆฌ ํ™ˆ์œผ๋กœ ์ €๋ฅผ ๋Œ์–ด๋“ค์ด๋Š” ๊ฒƒ์€ ๋น„๊ต์  ์‰ฝ์Šต๋‹ˆ๋‹ค.
"commandline" : "wsl.exe ~ -d Ubuntu-18.04"
๊ทธ๋Ÿฌ๋‚˜ "startingDirectory": "." ๋ฅผ ์ถ”๊ฐ€ํ•˜๋ฉด ์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด ๋ฐ”๋กœ ๊ฐ€๊ธฐ์— ๋Œ€ํ•œ ์˜ˆ์ƒ ๊ฒฐ๊ณผ๊ฐ€ ์ž์—ฐ์Šค๋Ÿฝ๊ฒŒ ๋‚˜ํƒ€๋‚˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. commandline ~๊ฐ€ ์—†์œผ๋ฉด /mnt/c/Windows/System32 ์‰˜์ด ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.

๋‹ค์Œ์€ ๋‚ด ์„ค์ • ํŒŒ์ผ์˜ ์ผ๋ถ€์ž…๋‹ˆ๋‹ค.

    "defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",
    "profiles":
    [
        {
            "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
            "name": "Ubuntu",
            // ... SNIPP
            //"startingDirectory" : "\\\\wsl$\\Ubuntu\\home\\andre",
            "startingDirectory" : ".",
            // ... SNIPP
        },
        // ... SNIPP
    ]

์ด๊ฒƒ์€ Windows terminal here ์‚ฌ์šฉํ•  ๋•Œ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์—ฝ๋‹ˆ ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ํ„ฐ๋ฏธ๋„์ด ์ •์ƒ์ ์œผ๋กœ ์—ด๋ฆฌ๋ฉด /mnt/c/Windows/System32 ๊ฐ€ ์—ด๋ฆฝ๋‹ˆ๋‹ค. ๋‚ด ์ž์‹ ์€์ด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
๋ณด์‹œ๋‹ค์‹œํ”ผ "." ์‚ฌ์šฉ์„ ์‹œ์ž‘ํ•˜๊ธฐ ์ „์— ์ด์ „์— ํ™ˆ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ํ•˜๋“œ ์ •์˜ํ–ˆ์Šต๋‹ˆ๋‹ค.

@zambelly ํ˜„์žฌ ์—†์Šต๋‹ˆ๋‹ค. ์ด ์‹œ๋‚˜๋ฆฌ์˜ค๋ฅผ ์ง€์›ํ•˜๋ ค๋ฉด # 878์„ ์ˆ˜์ •ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

๋”ฐ๋ผ์„œ "์—ฌ๊ธฐ์—์„œ Windows ํ„ฐ๋ฏธ๋„ ์—ด๊ธฐ"๋ฅผ ๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ ๋‹จ์ถ”๋กœ ํด๋ฆญํ–ˆ์ง€๋งŒ ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์œผ๋กœ ์‹คํ–‰ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ๋‚˜๋Š” ์šด์ด ์ข‹์ง€ ์•Š๊ณ  ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ์—์„œ runas์™€ runas ๋™์‚ฌ๋ฅผ ์‚ฌ์šฉํ•ด ๋ณด์•˜์Šต๋‹ˆ๋‹ค.

๊ทธ๋Ÿฌ๋‚˜ Windows ํ‚ค-> ํ„ฐ๋ฏธ๋„ ์ž…๋ ฅ-> "๊ด€๋ฆฌ์ž ๊ถŒํ•œ์œผ๋กœ ์‹คํ–‰"์„ ํด๋ฆญํ•˜๋ฉด Windows ํ„ฐ๋ฏธ๋„์ด ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์œผ๋กœ ์‹คํ–‰๋˜๋ฏ€๋กœ ํ™•์‹คํžˆ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.

๊ด€๋ฆฌ์ž๋กœ ์‹œ์ž‘ํ•˜๋„๋ก WT์˜ ํ™˜๊ฒฝ์„ ์„ค์ •ํ•˜๋Š” ๋น„๋ฐ€ ์†Œ์Šค๋Š” ๋ฌด์—‡์ž…๋‹ˆ๊นŒ?

@IanKemp ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ํ‚ค runas ์•„๋ž˜์—์„œ command ๊ฐ’์„ ๋ณ€๊ฒฝํ•˜์—ฌ์ด ๋ฐฉ๋ฒ•์„ ์‹œ๋„ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
cmd.exe /s /c pushd "%V" & start wt.exe

์•ฝ๊ฐ„ ํšŒ๋กœ ์ ์ด์ง€๋งŒ ์ ์–ด๋„ ์ด๊ฒƒ์€ ๋‚˜๋ฅผ ์œ„ํ•ด ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

์ด๋ฏธ ์‹คํ–‰์ค‘์ธ wt.exe ์ธ์Šคํ„ด์Šค๊ฐ€์žˆ๋Š” ๊ฒฝ์šฐ ๋Œ€์‹  ํƒญ์„ ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๊นŒ?
๊ทธ๋ฆฌ๊ณ  ์ƒˆ ํƒญ์— ์–ด๋–ค ํ”„๋กœํ•„์ด ์žˆ๋Š”์ง€ ์ง€์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๊นŒ?

์•ž์—์„œ ์„ค๋ช…ํ•œ๋Œ€๋กœ wt.exe๋ฅผ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ์— ์ถ”๊ฐ€ํ•˜๋ ค๊ณ ํ–ˆ์ง€๋งŒ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.
image

ํ„ฐ๋ฏธ๋„์€ ์ •์ƒ์ ์œผ๋กœ ๋ช…๋ น ์ค„ (Win + R | "wt")์—์„œ ์‹œ์ž‘๋ฉ๋‹ˆ๋‹ค.

๋‚ด ๋ถ€๋ถ„์—์„œ ๋™์ผํ•œ ๋ฌธ์ œ, ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์„ ๋ชจ๋ฅด๊ฒ ์Šต๋‹ˆ๋‹ค. ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ํŒŒ์ผ :

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Open Windows terminal here"
"Icon"="%USERPROFILE%\\AppData\\Local\\terminal\\wt.ico"

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="%LOCALAPPDATA%\\Microsoft\\WindowsApps\\wt.exe"


[HKEY_CLASSES_ROOT\Directory\shell\wt]
@="Open Windows terminal here"
"Icon"="%USERPROFILE%\\AppData\\Local\\terminal\\wt.ico"

[HKEY_CLASSES_ROOT\Directory\shell\wt\command]
@="%LOCALAPPDATA%\\Microsoft\\WindowsApps\\wt.exe"

์ ˆ๋Œ€ ๊ฒฝ๋กœ๊ฐ€ ํ•„์š”ํ•˜๊ณ  ๋ณ€์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š์•„์•ผํ•ฉ๋‹ˆ๋‹ค.
์ฐธ์กฐ : https://github.com/microsoft/terminal/issues/1060#issuecomment -536322970

๋ช…๋ น ํ”„๋กฌํ”„ํŠธ๋ฅผ ์—ฌ๋Š” ๋ฐฉ๋ฒ•์ด ํŒŒ์ผ ํƒ์ƒ‰๊ธฐ์—์„œ 80 %์ด๊ธฐ ๋•Œ๋ฌธ์— ์ด๊ฒƒ์ด ํ„ฐ๋ฏธ๋„์„ ๋” ๋งŽ์ด ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š” ์ด์œ ๋ผ๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค. ๋‚˜๋จธ์ง€๋Š” Win + R + cmd + Enter์—์„œ ๊ฐ€์ ธ ์™”๊ณ  ๋ฐฉ๊ธˆ wt ๋ณ„์นญ์— ๋Œ€ํ•ด ๋ฐฐ์› ์œผ๋ฏ€๋กœ ๋„์›€์ด ๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค.

์ด ์ž‘์—…์ด ์™„๋ฃŒ๋˜๋ฉด PowerShell / CMD ์Šค์œ„์น˜๊ฐ€์žˆ๋Š” ์„ค์ •๋ฟ๋งŒ ์•„๋‹ˆ๋ผ ์„ค์ •์—์„œ๋„ ๋…ธ์ถœ ํ•  ์ˆ˜์žˆ๋Š” ์ข‹์€ ๊ธฐํšŒ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.

image

๋“œ๋กญ ๋‹ค์šด์œผ๋กœ ์„ ํ˜ธํ•˜๋Š” ์…ธ์„ ์„ ํƒํ•˜๊ณ  ์„ค์น˜๋œ ๊ฒฝ์šฐ ํ„ฐ๋ฏธ๋„์„ ์˜ต์…˜์œผ๋กœ ์„ ํƒํ•  ์ˆ˜์žˆ๋Š” ์˜ต์…˜ ๋งŒ ์žˆ์œผ๋ฉด ์ข‹์„ ๊ฒƒ์ž…๋‹ˆ๋‹ค.

@ michael-hawker ๋‹น์‹ ์ด ์—ฌ๊ธฐ์„œ ์ •๋ง๋กœ ์ฐพ๊ณ ์žˆ๋Š” ๊ฒƒ์€ # 492์ž…๋‹ˆ๋‹ค ๐Ÿ˜

๊ด€๋ฆฌ์ž๋กœ ์‹คํ–‰ํ•ด์•ผํ•˜๋Š” ํ•˜๋‚˜์˜ bat ํŒŒ์ผ๋กœ ์ „์ฒด ํ”„๋กœ์„ธ์Šค๋ฅผ ์ž๋™ํ™”ํ–ˆ์Šต๋‹ˆ๋‹ค.
์ปจํ…์ŠคํŠธ menu.zip์— Windows ํ„ฐ๋ฏธ๋„ ์ถ”๊ฐ€
์—ฌ์ „ํžˆ profiles.json์˜ ์‹œ์ž‘ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ "startingDirectory" : ".", ๋กœ ์ˆ˜์ •ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

@ Restia666Ashdoll ์ด .ico๋ฅผ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ฐ€์ ธ ์˜ค์ง€ ์•Š๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

๊ทธ๋ž˜๋„ ์—ฌ๊ธฐ์„œ ์ž‘๋™
image

์ด ์‹œ๋„. terminal.ico ํŒŒ์ผ์˜ ์œ„์น˜๋ฅผ โ€‹โ€‹์—ฝ๋‹ˆ ๋‹ค. ์ด์ œ ์ฃผ์†Œ ํ‘œ์‹œ ์ค„๋กœ ์ด๋™ํ•˜์—ฌ "cmd"๋ฅผ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.
์ด์ œ ๋ช…๋ น ํ”„๋กฌํ”„ํŠธ์—์„œ ๋‹ค์Œ ๋ช…๋ น์„ ์ž…๋ ฅํ•˜์‹ญ์‹œ์˜ค.
xcopy "terminal.ico" "%LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\" /b /v /y /q

์ž‘๋™ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค

"% LOCALAPPDATA % \ Packages \ Microsoft.WindowsTerminal_8wekyb3d8bbwe \ LocalState \"๋ฅผ ์—ด๊ณ  ์ˆ˜๋™์œผ๋กœ ico ํŒŒ์ผ์„ ๋ณต์‚ฌ ํ•œ ๋‹ค์Œ

์˜ˆ,ํ•˜์ง€๋งŒ ๋ฌธ์ œ๋Š” ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ํ‚ค๊ฐ€ ico ์„ ํƒํ•˜์ง€ ์•Š๋Š”๋‹ค๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.

๊ด€๋ฆฌ์ž๋กœ ์‹คํ–‰ํ•ด์•ผํ•˜๋Š” ํ•˜๋‚˜์˜ bat ํŒŒ์ผ๋กœ ์ „์ฒด ํ”„๋กœ์„ธ์Šค๋ฅผ ์ž๋™ํ™”ํ–ˆ์Šต๋‹ˆ๋‹ค.
์ปจํ…์ŠคํŠธ menu.zip์— Windows ํ„ฐ๋ฏธ๋„ ์ถ”๊ฐ€
์—ฌ์ „ํžˆ profiles.json์˜ ์‹œ์ž‘ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ "startingDiretory" : ".", ๋กœ ์ˆ˜์ •ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

๊ฒฝ๊ณ  : ์ž…๋ ฅ ์˜ค๋ฅ˜๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ๋Œ€์‹  "startingDirectory" : "." ๋ฅผ ์‚ฌ์šฉํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\wt ์–ด๋–ป์Šต๋‹ˆ๊นŒ? ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์ด ํ•„์š”ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\wt ์–ด๋–ป์Šต๋‹ˆ๊นŒ? ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์ด ํ•„์š”ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

ํ˜„์žฌ ์‚ฌ์šฉ์ž๋งŒ์„์œ„ํ•œ ๊ฒƒ์ž…๋‹ˆ๋‹ค.

@ Restia666Ashdoll ๋ฐ @musm , ico ํŒŒ์ผ์„ LocalAppData ํด๋”์— ๋ณต์‚ฌ ํ•œ ํ›„ ๋กœ๊ทธ ์•„์›ƒํ•˜๊ณ  ๋‹ค์‹œ ๋กœ๊ทธ์ธํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋ฉด ์•„์ด์ฝ˜์ด ๋‚˜ํƒ€๋‚ฉ๋‹ˆ๋‹ค.

image

@edrohler ์™œ ๋‚˜๋ฅผ ์ธ์šฉํ•˜๋Š”๊ฑฐ์•ผ? ์ด ๋ฌธ์ œ๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.

@Horacehxw ๋Š” ๋งˆ์ง€๋ง‰ ํ•ญ๋ชฉ ์ธ ๊ฒฝ์šฐ์—๋งŒ ํ•ด๋‹น๋ฉ๋‹ˆ๋‹ค.

@ Restia666Ashdoll ๋‹ค๋ฅธ ์‚ฌ๋žŒ์ด ์š”์ฒญํ•˜๋ฉด ๋ฐฐ์น˜ ์Šคํฌ๋ฆฝํŠธ์™€ ์ •๋ณด๋ฅผ ๊ณต์œ ํ•˜๊ณ  ์‹ถ์„ ๊ฒƒ์ด๋ผ๊ณ  ์ƒ๊ฐํ•˜๋Š” ๊ฒƒ์„ ์ธ์šฉํ–ˆ์Šต๋‹ˆ๋‹ค. :)

๋กœ๊ทธ ์•„์›ƒํ•˜๊ณ  ๋‹ค์‹œ ๋กœ๊ทธ์ธ

@edrohler ์ž‘์—… ๊ด€๋ฆฌ์ž๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ explorer.exe ์„ ๋‹ค์‹œ ์‹œ์ž‘ํ•˜๋ฉด๋ฉ๋‹ˆ๋‹ค.
ํ•˜๋‚˜ ์ด์ƒ์˜ ํด๋”๊ฐ€ ์—ด๋ ค์žˆ๋Š” ๊ฒฝ์šฐ ์ž‘์—… ๊ด€๋ฆฌ์ž๋Š” ์ž‘์—… ์ข…๋ฃŒ ์˜ ์ •์ƒ์ ์ธ ์œ„์น˜์— ๋‹ค์‹œ ์‹œ์ž‘ ์„ ํ‘œ์‹œ

@Horacehxw ๋Š” ๋งˆ์ง€๋ง‰ ํ•ญ๋ชฉ ์ธ ๊ฒฝ์šฐ์—๋งŒ ํ•ด๋‹น๋ฉ๋‹ˆ๋‹ค.

๋ฌธ์ œ๋Š” ๋์—์žˆ๋Š” ์‰ผํ‘œ๊ฐ€ ์•„๋‹ˆ๋ผ "Directory"์˜ ์ฒ ์ž์ž…๋‹ˆ๋‹ค. ์ด์ „ ํ•ญ๋ชฉ์—๋Š” "c"๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.

๊ด€๋ฆฌ์ž๋กœ ์‹คํ–‰ํ•ด์•ผํ•˜๋Š” ํ•˜๋‚˜์˜ bat ํŒŒ์ผ๋กœ ์ „์ฒด ํ”„๋กœ์„ธ์Šค๋ฅผ ์ž๋™ํ™”ํ–ˆ์Šต๋‹ˆ๋‹ค.
์ปจํ…์ŠคํŠธ menu.zip์— Windows ํ„ฐ๋ฏธ๋„ ์ถ”๊ฐ€
์—ฌ์ „ํžˆ profiles.json์˜ ์‹œ์ž‘ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ "startingDirectory" : ".", ๋กœ ์ˆ˜์ •ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

๋‚˜๋Š” ์ด๊ฒƒ์„ ์‹œ๋„ํ–ˆ์ง€๋งŒ ๋‘ ๊ฐ€์ง€ ๋ฌธ์ œ : ์ด์ œ profile.json์— startingDirectory ์ด ์žˆ์Šต๋‹ˆ๋‹ค.

// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation

{
    "$schema": "https://aka.ms/terminal-profiles-schema",

    "defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",

    "profiles":
    [
        {
            // Make changes here to the powershell.exe profile
            "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
            "name": "Windows PowerShell",
            "commandline": "powershell.exe",
            "hidden": false
        },
        {
            // Make changes here to the cmd.exe profile
            "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
            "name": "cmd",
            "commandline": "cmd.exe",
            "hidden": false
        },
        {
            "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
            "hidden": false,
            "name": "Azure Cloud Shell",
            "source": "Windows.Terminal.Azure"
        },
        {
            "guid": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}",
            "hidden": false,
            "name": "Ubuntu-18.04",
            "source": "Windows.Terminal.Wsl"
        }
    ],

    // Add custom color schemes to this array
    "schemes": [],

    // Add any keybinding overrides to this array.
    // To unbind a default keybinding, set the command to "unbound"
    "keybindings": []
}

๋˜ ๋‹ค๋ฅธ ๋ฌธ์ œ๋Š” ํ„ฐ๋ฏธ๋„์ด ๋‚ด ์‚ฌ์šฉ์ž ๊ฒฝ๋กœ์—์„œ๋งŒ ์‹œ์ž‘๋˜๋Š” ์˜ฌ๋ฐ”๋ฅธ '์—ฌ๊ธฐ'๊ฒฝ๋กœ๋กœ ์‹ค์ œ๋กœ ์ด๋™ํ•˜์ง€ ์•Š๋Š”๋‹ค๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.

๊ด€๋ฆฌ์ž๋กœ ์‹คํ–‰ํ•ด์•ผํ•˜๋Š” ํ•˜๋‚˜์˜ bat ํŒŒ์ผ๋กœ ์ „์ฒด ํ”„๋กœ์„ธ์Šค๋ฅผ ์ž๋™ํ™”ํ–ˆ์Šต๋‹ˆ๋‹ค.
์ปจํ…์ŠคํŠธ menu.zip์— Windows ํ„ฐ๋ฏธ๋„ ์ถ”๊ฐ€
์—ฌ์ „ํžˆ profiles.json์˜ ์‹œ์ž‘ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ "startingDiretory" : ".", ๋กœ ์ˆ˜์ •ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

๊ฒฝ๊ณ  : ์ž…๋ ฅ ์˜ค๋ฅ˜๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ๋Œ€์‹  "startingDirectory" : "." ๋ฅผ ์‚ฌ์šฉํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

์ด๊ฒƒ์€ ๋‹น์‹ ์ด ๋ฐ”๋กœ ์—ฌ๊ธฐ์—์„œ ์—ด๋ฉด ์ž˜ ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค ...
๋‚ด๊ฐ€ ์•Œ์•„ ์ฐจ๋ฆฐ ํ•œ ๊ฐ€์ง€ ๋ฌธ์ œ๋Š” ํ„ฐ๋ฏธ๋„์„ ์ •์ƒ์ ์œผ๋กœ ์—ด๋ฉด ... ๊ธฐ๋ณธ ๋””๋ ‰ํ† ๋ฆฌ๋Š” system32์ž…๋‹ˆ๋‹ค ... ํ˜น์‹œ ์ •์ƒ์ ์œผ๋กœ ์—ด์—ˆ์„ ๋•Œ ์‚ฌ์šฉ์ž ํด๋”๋ฅผ ์žฌ์ •์˜ํ•˜๊ณ  ์‚ฌ์šฉํ•˜๋„๋ก ํ•  ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๊นŒ?

๊ด€๋ฆฌ์ž๋กœ ์‹คํ–‰ํ•ด์•ผํ•˜๋Š” ํ•˜๋‚˜์˜ bat ํŒŒ์ผ๋กœ ์ „์ฒด ํ”„๋กœ์„ธ์Šค๋ฅผ ์ž๋™ํ™”ํ–ˆ์Šต๋‹ˆ๋‹ค.
์ปจํ…์ŠคํŠธ menu.zip์— Windows ํ„ฐ๋ฏธ๋„ ์ถ”๊ฐ€
์—ฌ์ „ํžˆ profiles.json์˜ ์‹œ์ž‘ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ "startingDirectory" : ".", ๋กœ ์ˆ˜์ •ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

๋‚˜๋Š” ์ด๊ฒƒ์„ ์‹œ๋„ํ–ˆ์ง€๋งŒ ๋‘ ๊ฐ€์ง€ ๋ฌธ์ œ : ์ด์ œ profile.json์— startingDirectory ์ด ์žˆ์Šต๋‹ˆ๋‹ค.

// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation

{
    "$schema": "https://aka.ms/terminal-profiles-schema",

    "defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",

    "profiles":
    [
        {
            // Make changes here to the powershell.exe profile
            "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
            "name": "Windows PowerShell",
            "commandline": "powershell.exe",
            "hidden": false
        },
        {
            // Make changes here to the cmd.exe profile
            "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
            "name": "cmd",
            "commandline": "cmd.exe",
            "hidden": false
        },
        {
            "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
            "hidden": false,
            "name": "Azure Cloud Shell",
            "source": "Windows.Terminal.Azure"
        },
        {
            "guid": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}",
            "hidden": false,
            "name": "Ubuntu-18.04",
            "source": "Windows.Terminal.Wsl"
        }
    ],

    // Add custom color schemes to this array
    "schemes": [],

    // Add any keybinding overrides to this array.
    // To unbind a default keybinding, set the command to "unbound"
    "keybindings": []
}

๋˜ ๋‹ค๋ฅธ ๋ฌธ์ œ๋Š” ํ„ฐ๋ฏธ๋„์ด ๋‚ด ์‚ฌ์šฉ์ž ๊ฒฝ๋กœ์—์„œ๋งŒ ์‹œ์ž‘๋˜๋Š” ์˜ฌ๋ฐ”๋ฅธ '์—ฌ๊ธฐ'๊ฒฝ๋กœ๋กœ ์‹ค์ œ๋กœ ์ด๋™ํ•˜์ง€ ์•Š๋Š”๋‹ค๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.

๊ด€์‹ฌ์ด ์žˆ๋‹ค๋ฉด ์—ฌ๊ธฐ ๋‚ด ํ”„๋กœํ•„์ด ์žˆ์Šต๋‹ˆ๋‹ค.

{
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "globals" : 
    {
        "alwaysShowTabs" : true,
        "defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
        "disabledProfileSources": [
        "Windows.Terminal.Azure"
    ],
        "initialCols" : 120,
        "initialRows" : 30,
        "keybindings" : 
        [
            {
                "command" : "closePane",
                "keys" : 
                [
                    "ctrl+shift+w"
                ]
            },
            {
                "command" : "copy",
                "keys" : 
                [
                    "ctrl+shift+c"
                ]
            },
            {
                "command" : "duplicateTab",
                "keys" : 
                [
                    "ctrl+shift+d"
                ]
            },
            {
                "command" : "newTab",
                "keys" : 
                [
                    "ctrl+shift+t"
                ]
            },
            {
                "command" : "newTabProfile0",
                "keys" : 
                [
                    "ctrl+shift+1"
                ]
            },
            {
                "command" : "newTabProfile1",
                "keys" : 
                [
                    "ctrl+shift+2"
                ]
            },
            {
                "command" : "newTabProfile2",
                "keys" : 
                [
                    "ctrl+shift+3"
                ]
            },
            {
                "command" : "newTabProfile3",
                "keys" : 
                [
                    "ctrl+shift+4"
                ]
            },
            {
                "command" : "newTabProfile4",
                "keys" : 
                [
                    "ctrl+shift+5"
                ]
            },
            {
                "command" : "newTabProfile5",
                "keys" : 
                [
                    "ctrl+shift+6"
                ]
            },
            {
                "command" : "newTabProfile6",
                "keys" : 
                [
                    "ctrl+shift+7"
                ]
            },
            {
                "command" : "newTabProfile7",
                "keys" : 
                [
                    "ctrl+shift+8"
                ]
            },
            {
                "command" : "newTabProfile8",
                "keys" : 
                [
                    "ctrl+shift+9"
                ]
            },
            {
                "command" : "nextTab",
                "keys" : 
                [
                    "ctrl+tab"
                ]
            },
            {
                "command" : "openSettings",
                "keys" : 
                [
                    "ctrl+,"
                ]
            },
            {
                "command" : "paste",
                "keys" : 
                [
                    "ctrl+shift+v"
                ]
            },
            {
                "command" : "prevTab",
                "keys" : 
                [
                    "ctrl+shift+tab"
                ]
            },
            {
                "command" : "scrollDown",
                "keys" : 
                [
                    "ctrl+shift+down"
                ]
            },
            {
                "command" : "scrollDownPage",
                "keys" : 
                [
                    "ctrl+shift+pgdn"
                ]
            },
            {
                "command" : "scrollUp",
                "keys" : 
                [
                    "ctrl+shift+up"
                ]
            },
            {
                "command" : "scrollUpPage",
                "keys" : 
                [
                    "ctrl+shift+pgup"
                ]
            },
            {
                "command" : "switchToTab0",
                "keys" : 
                [
                    "ctrl+alt+1"
                ]
            },
            {
                "command" : "switchToTab1",
                "keys" : 
                [
                    "ctrl+alt+2"
                ]
            },
            {
                "command" : "switchToTab2",
                "keys" : 
                [
                    "ctrl+alt+3"
                ]
            },
            {
                "command" : "switchToTab3",
                "keys" : 
                [
                    "ctrl+alt+4"
                ]
            },
            {
                "command" : "switchToTab4",
                "keys" : 
                [
                    "ctrl+alt+5"
                ]
            },
            {
                "command" : "switchToTab5",
                "keys" : 
                [
                    "ctrl+alt+6"
                ]
            },
            {
                "command" : "switchToTab6",
                "keys" : 
                [
                    "ctrl+alt+7"
                ]
            },
            {
                "command" : "switchToTab7",
                "keys" : 
                [
                    "ctrl+alt+8"
                ]
            },
            {
                "command" : "switchToTab8",
                "keys" : 
                [
                    "ctrl+alt+9"
                ]
            }
        ],
        "requestedTheme" : "system",
        "showTabsInTitlebar" : true,
        "showTerminalTitleInTitlebar" : true,
        "wordDelimiters" : " ./\\()\"'-:,.;<>[email protected]#$%^&*|+=[]{}~?\u2502"
    },
    "profiles" : 
    [
        {
            "acrylicOpacity" : 0.75,
            "background" : "#012456",
            "closeOnExit" : true,
            "colorScheme" : "One Half Dark",
            "commandline" : "powershell.exe",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "Consolas",
            "fontSize" : 10,
            "guid" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
            "historySize" : 9001,
            "icon" : "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png",
            "name" : "Windows PowerShell",
            "padding" : "0, 0, 0, 0",
            "snapOnInput" : true,
            "startingDirectory" : ".",
            "useAcrylic" : true
        },
        {
            "acrylicOpacity" : 0.75,
            "closeOnExit" : true,
            "colorScheme" : "One Half Dark",
            "commandline" : "cmd.exe",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "Consolas",
            "fontSize" : 10,
            "guid" : "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
            "historySize" : 9001,
            "icon" : "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png",
            "name" : "Command Prompt",
            "padding" : "0, 0, 0, 0",
            "snapOnInput" : true,
            "startingDirectory" : ".",
            "useAcrylic" : true
        },
        {
            "acrylicOpacity" : 0.75,
            "closeOnExit" : true,
            "colorScheme" : "flat-ui-v1",
            "commandline" : "cmd.exe /c set MSYS=winsymlinks:nativestrict&& set MSYS2_PATH_TYPE=inherit&& msys2 -i -l",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "Consolas",
            "fontSize" : 10,
            "historySize" : 9001,
            "icon" : "%SCOOP%\\apps\\msys2\\current\\msys2.ico",
            "name" : "MSYS2",
            "padding" : "0, 0, 0, 0",
            "snapOnInput" : true,
            "startingDirectory" : ".",
            "useAcrylic" : true
        },
        {
            "acrylicOpacity" : 0.75,
            "closeOnExit" : true,
            "colorScheme" : "flat-ui-v1",
            "commandline" : "cmd.exe /c set MSYS=winsymlinks:nativestrict&& set MSYS2_PATH_TYPE=inherit&& mingw64 -i -l",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "Consolas",
            "fontSize" : 10,
            "historySize" : 9001,
            "icon" : "%SCOOP%\\apps\\msys2\\current\\mingw64.ico",
            "name" : "MinGW64",
            "padding" : "0, 0, 0, 0",
            "snapOnInput" : true,
            "startingDirectory" : ".",
            "useAcrylic" : true
        },
        {         
            "guid": "{a5a97cb8-8961-5535-816d-772efe0c6a3f}",
            "acrylicOpacity" : 0.75,
            "background" : "#012456",
            "closeOnExit" : true,
            "colorScheme" : "flat-ui-v1",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "Consolas",
            "fontSize" : 10,
            "hidden": false,
            "name": "Arch",
            "icon" : "%SCOOP%\\apps\\archwsl\\current\\arch.ico",
            "source": "Windows.Terminal.Wsl",
            "padding" : "0, 0, 0, 0",
            "snapOnInput" : true,
            "startingDirectory" : ".",
            "useAcrylic" : true
        },
        {        
            "acrylicOpacity" : 0.75,
            "closeOnExit" : true,
            "colorScheme" : "flat-ui-v1",
            "commandline" : "\"%SCOOP%\\apps\\git-with-openssh\\current\\bin\\bash.exe\" -i -l",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "Consolas",
            "fontSize" : 10,
            "historySize" : 9001,
            "icon" : "%SCOOP%\\apps\\git-with-openssh\\current\\mingw64\\share\\git\\git-for-windows.ico",
            "name" : "Git Bash",
            "padding" : "0, 0, 0, 0",
            "snapOnInput" : true,
            "startingDirectory" : ".",
            "useAcrylic" : true
        }
    ],
        {
            "acrylicOpacity" : 0.75,
            "background" : "#012456",
            "closeOnExit" : true,
            "colorScheme" : "One Half Dark",
            "commandline" : "powershell.exe",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "Consolas",
            "fontSize" : 10,
            "guid" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
            "historySize" : 9001,
            "icon" : "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png",
            "backgroundImage" : "ms-appdata:///local/1537295612521.png",
            "backgroundImageOpacity" : 0.75,
            "backgroundImageStrechMode" : "fill",
            "name" : "Windows PowerShell",
            "padding" : "0, 0, 0, 0",
            "snapOnInput" : true,
            "startingDirectory" : ".",
            "useAcrylic" : true
        },
        {
            "acrylicOpacity" : 0.75,
            "closeOnExit" : true,
            "colorScheme" : "One Half Dark",
            "commandline" : "cmd.exe",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "Consolas",
            "fontSize" : 10,
            "guid" : "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
            "historySize" : 9001,
            "icon" : "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png",
            "backgroundImage" : "ms-appdata:///local/1503827082075.png",
            "backgroundImageOpacity" : 0.75,
            "backgroundImageStrechMode" : "fill",
            "name" : "Command Prompt",
            "padding" : "0, 0, 0, 0",
            "snapOnInput" : true,
            "startingDirectory" : ".",
            "useAcrylic" : true
        },
        {
            "acrylicOpacity" : 0.75,
            "closeOnExit" : true,
            "colorScheme" : "flat-ui-v1",
            "commandline" : "cmd.exe /c set MSYS=winsymlinks:nativestrict&& set MSYS2_PATH_TYPE=inherit&& msys2 -i -l",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "Consolas",
            "fontSize" : 10,
            "historySize" : 9001,
            "icon" : "%SCOOP%\\apps\\msys2\\current\\msys2.ico",
            "backgroundImage" : "ms-appdata:///local/1504637576364.png",
            "backgroundImageOpacity" : 0.75,
            "backgroundImageStrechMode" : "fill",
            "name" : "MSYS2",
            "padding" : "0, 0, 0, 0",
            "snapOnInput" : true,
            "startingDirectory" : ".",
            "useAcrylic" : true
        },
        {
            "acrylicOpacity" : 0.75,
            "closeOnExit" : true,
            "colorScheme" : "flat-ui-v1",
            "commandline" : "cmd.exe /c set MSYS=winsymlinks:nativestrict&& set MSYS2_PATH_TYPE=inherit&& mingw64 -i -l",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "Consolas",
            "fontSize" : 10,
            "historySize" : 9001,
            "icon" : "%SCOOP%\\apps\\msys2\\current\\mingw64.ico",
            "backgroundImage" : "ms-appdata:///local/704387.png",
            "backgroundImageOpacity" : 0.75,
            "backgroundImageStrechMode" : "fill",
            "name" : "MinGW64",
            "padding" : "0, 0, 0, 0",
            "snapOnInput" : true,
            "startingDirectory" : ".",
            "useAcrylic" : true
        },
        {         
            "guid": "{a5a97cb8-8961-5535-816d-772efe0c6a3f}",
            "acrylicOpacity" : 0.75,
            "background" : "#012456",
            "closeOnExit" : true,
            "colorScheme" : "flat-ui-v1",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "Consolas",
            "fontSize" : 10,
            "hidden": false,
            "name": "Arch",
            "icon" : "%SCOOP%\\apps\\archwsl\\current\\arch.ico",
            "backgroundImage" : "ms-appdata:///local/1507634976184.jpg",
            "backgroundImageOpacity" : 0.75,
            "backgroundImageStrechMode" : "fill",
            "source": "Windows.Terminal.Wsl",
            "padding" : "0, 0, 0, 0",
            "snapOnInput" : true,
            "startingDirectory" : ".",
            "useAcrylic" : true
        },
        {        
            "acrylicOpacity" : 0.75,
            "closeOnExit" : true,
            "colorScheme" : "flat-ui-v1",
            "commandline" : "\"%SCOOP%\\apps\\git-with-openssh\\current\\bin\\bash.exe\" -i -l",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "Consolas",
            "fontSize" : 10,
            "historySize" : 9001,
            "icon" : "%SCOOP%\\apps\\git-with-openssh\\current\\mingw64\\share\\git\\git-for-windows.ico",
            "backgroundImage" : "ms-appdata:///local/1496315646560.png",
            "backgroundImageOpacity" : 0.75,
            "backgroundImageStrechMode" : "fill",
            "name" : "Git Bash",
            "padding" : "0, 0, 0, 0",
            "snapOnInput" : true,
            "startingDirectory" : ".",
            "useAcrylic" : true
        }
    ],
    "schemes" : 
    [
        {
            "background":"#000000",
            "black":"#000000",
            "blue":"#2980b9",
            "brightBlack":"#7f8c8d",
            "brightBlue":"#3498db",
            "brightCyan":"#1abc9c",
            "brightGreen":"#2ecc71",
            "brightPurple":"#9b59b6",
            "brightRed":"#e74c3c",
            "brightWhite":"#ecf0f1",
            "brightYellow":"#f1c40f",
            "cyan":"#16a085",
            "foreground":"#ecf0f1",
            "green":"#27ae60",
            "name":"flat-ui-v1",
            "purple":"#8e44ad",
            "red":"#c0392b",
            "white":"#ecf0f1",
            "yellow":"#f39c12"
        },
        {
            "background" : "#0C0C0C",
            "black" : "#0C0C0C",
            "blue" : "#0037DA",
            "brightBlack" : "#767676",
            "brightBlue" : "#3B78FF",
            "brightCyan" : "#61D6D6",
            "brightGreen" : "#16C60C",
            "brightPurple" : "#B4009E",
            "brightRed" : "#E74856",
            "brightWhite" : "#F2F2F2",
            "brightYellow" : "#F9F1A5",
            "cyan" : "#3A96DD",
            "foreground" : "#CCCCCC",
            "green" : "#13A10E",
            "name" : "Campbell",
            "purple" : "#881798",
            "red" : "#C50F1F",
            "white" : "#CCCCCC",
            "yellow" : "#C19C00"
        },
        {
            "background" : "#000000",
            "black" : "#000000",
            "blue" : "#000080",
            "brightBlack" : "#808080",
            "brightBlue" : "#0000FF",
            "brightCyan" : "#00FFFF",
            "brightGreen" : "#00FF00",
            "brightPurple" : "#FF00FF",
            "brightRed" : "#FF0000",
            "brightWhite" : "#FFFFFF",
            "brightYellow" : "#FFFF00",
            "cyan" : "#008080",
            "foreground" : "#C0C0C0",
            "green" : "#008000",
            "name" : "Vintage",
            "purple" : "#800080",
            "red" : "#800000",
            "white" : "#C0C0C0",
            "yellow" : "#808000"
        },
        {
            "background" : "#282C34",
            "black" : "#282C34",
            "blue" : "#61AFEF",
            "Grey" : "#FFFFFF",
            "darkGrey" : "#FFFFFF",
            "brightBlack" : "#5A6374",
            "brightBlue" : "#61AFEF",
            "brightCyan" : "#56B6C2",
            "brightGreen" : "#98C379",
            "brightPurple" : "#C678DD",
            "brightRed" : "#E06C75",
            "brightWhite" : "#DCDFE4",
            "brightYellow" : "#E5C07B",
            "cyan" : "#56B6C2",
            "foreground" : "#DCDFE4",
            "green" : "#98C379",
            "name" : "One Half Dark",
            "purple" : "#C678DD",
            "red" : "#E06C75",
            "white" : "#DCDFE4",
            "yellow" : "#E5C07B"
        },
        {
            "background" : "#FAFAFA",
            "black" : "#383A42",
            "blue" : "#0184BC",
            "brightBlack" : "#4F525D",
            "brightBlue" : "#61AFEF",
            "brightCyan" : "#56B5C1",
            "brightGreen" : "#98C379",
            "brightPurple" : "#C577DD",
            "brightRed" : "#DF6C75",
            "brightWhite" : "#FFFFFF",
            "brightYellow" : "#E4C07A",
            "cyan" : "#0997B3",
            "foreground" : "#383A42",
            "green" : "#50A14F",
            "name" : "One Half Light",
            "purple" : "#A626A4",
            "red" : "#E45649",
            "white" : "#FAFAFA",
            "yellow" : "#C18301"
        },
        {
            "background" : "#002B36",
            "black" : "#073642",
            "blue" : "#268BD2",
            "brightBlack" : "#002B36",
            "brightBlue" : "#839496",
            "brightCyan" : "#93A1A1",
            "brightGreen" : "#586E75",
            "brightPurple" : "#6C71C4",
            "brightRed" : "#CB4B16",
            "brightWhite" : "#FDF6E3",
            "brightYellow" : "#657B83",
            "cyan" : "#2AA198",
            "foreground" : "#839496",
            "green" : "#859900",
            "name" : "Solarized Dark",
            "purple" : "#D33682",
            "red" : "#DC322F",
            "white" : "#EEE8D5",
            "yellow" : "#B58900"
        },
        {
            "background" : "#FDF6E3",
            "black" : "#073642",
            "blue" : "#268BD2",
            "brightBlack" : "#002B36",
            "brightBlue" : "#839496",
            "brightCyan" : "#93A1A1",
            "brightGreen" : "#586E75",
            "brightPurple" : "#6C71C4",
            "brightRed" : "#CB4B16",
            "brightWhite" : "#FDF6E3",
            "brightYellow" : "#657B83",
            "cyan" : "#2AA198",
            "foreground" : "#657B83",
            "green" : "#859900",
            "name" : "Solarized Light",
            "purple" : "#D33682",
            "red" : "#DC322F",
            "white" : "#EEE8D5",
            "yellow" : "#B58900"
        }
    ]
}

@ restia666Ashdoll ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค! ์ž‘๋™ํ–ˆ์ง€๋งŒ ๋งค๋ฒˆ ํŒ์—…์ด ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.

Capture

@foremtehan msys2, mingw64, arch ๋ฐ git bash๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์— ํ•„์š”ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ์ด์ œ Ubuntu ์šฉ ํ”„๋กœํ•„์—์„œ ์ด๊ฒƒ์„ ์‹œ๋„ํ•˜์‹ญ์‹œ์˜ค.

        {         
            "guid": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}",
            "acrylicOpacity" : 0.75,
            "background" : "#012456",
            "closeOnExit" : true,
            "colorScheme" : "flat-ui-v1",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "Consolas",
            "fontSize" : 10,
            "hidden": false,
            "name": "Ubuntu",
            "source": "Windows.Terminal.Wsl",
            "padding" : "0, 0, 0, 0",
            "snapOnInput" : true,
            "startingDirectory" : ".",
            "useAcrylic" : true
        }

์ตœ์ข… ํ”„๋กœํ•„ ์„น์…˜์— ์‰ผํ‘œ๊ฐ€ ์—†๋Š”์ง€ ํ™•์ธํ•˜์‹ญ์‹œ์˜ค.

๊ด€๋ฆฌ์ž๋กœ ์‹คํ–‰ํ•ด์•ผํ•˜๋Š” ํ•˜๋‚˜์˜ bat ํŒŒ์ผ๋กœ ์ „์ฒด ํ”„๋กœ์„ธ์Šค๋ฅผ ์ž๋™ํ™”ํ–ˆ์Šต๋‹ˆ๋‹ค.
์ปจํ…์ŠคํŠธ menu.zip์— Windows ํ„ฐ๋ฏธ๋„ ์ถ”๊ฐ€
์—ฌ์ „ํžˆ profiles.json์˜ ์‹œ์ž‘ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ "startingDiretory" : ".", ๋กœ ์ˆ˜์ •ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

๊ฒฝ๊ณ  : ์ž…๋ ฅ ์˜ค๋ฅ˜๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ๋Œ€์‹  "startingDirectory" : "." ๋ฅผ ์‚ฌ์šฉํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

์ด๊ฒƒ์€ ๋‹น์‹ ์ด ๋ฐ”๋กœ ์—ฌ๊ธฐ์—์„œ ์—ด๋ฉด ์ž˜ ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค ...
๋‚ด๊ฐ€ ์•Œ์•„ ์ฐจ๋ฆฐ ํ•œ ๊ฐ€์ง€ ๋ฌธ์ œ๋Š” ํ„ฐ๋ฏธ๋„์„ ์ •์ƒ์ ์œผ๋กœ ์—ด๋ฉด ... ๊ธฐ๋ณธ ๋””๋ ‰ํ† ๋ฆฌ๋Š” system32์ž…๋‹ˆ๋‹ค ... ํ˜น์‹œ ์ •์ƒ์ ์œผ๋กœ ์—ด์—ˆ์„ ๋•Œ ์‚ฌ์šฉ์ž ํด๋”๋ฅผ ์žฌ์ •์˜ํ•˜๊ณ  ์‚ฌ์šฉํ•˜๋„๋ก ํ•  ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๊นŒ?

์•ผ! ๋‚˜๋„์ด ๋ฌธ์ œ๊ฐ€ ์žˆ์—ˆ๋‹ค. ๋น ๋ฅด๊ณ  ๋”๋Ÿฌ์šด ์ˆ˜์ •์€ WSL ํ„ฐ๋ฏธ๋„ ๋‚ด์˜ .bashrc ํŒŒ์ผ์— cd ๋ช…๋ น์„ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.
echo 'cd ~'>> ~ / .bashrc

์ด๊ฒƒ์€ ํ„ฐ๋ฏธ๋„์„ ์—ฌ๋Š” ์œ„์น˜์— ๊ด€๊ณ„์—†์ด ํ•ญ์ƒ '~'๋””๋ ‰ํ† ๋ฆฌ์— ์žˆ๊ธฐ ๋•Œ๋ฌธ์—์ด ์Šค๋ ˆ๋“œ์˜ ์ „์ฒด ๋ชฉ์ ์„ ๋ฌดํšจํ™”ํ•ฉ๋‹ˆ๋‹ค. wsl / msys2 / mingw64 / git bash์—์„œ ํ„ฐ๋ฏธ๋„์„ ์—ฐ ํ›„ 'cd ~'๋ฅผ ์ž…๋ ฅํ•˜์‹ญ์‹œ์˜ค.

๊ด€๋ฆฌ์ž๋กœ ์‹คํ–‰ํ•ด์•ผํ•˜๋Š” ํ•˜๋‚˜์˜ bat ํŒŒ์ผ๋กœ ์ „์ฒด ํ”„๋กœ์„ธ์Šค๋ฅผ ์ž๋™ํ™”ํ–ˆ์Šต๋‹ˆ๋‹ค.
์ปจํ…์ŠคํŠธ menu.zip์— Windows ํ„ฐ๋ฏธ๋„ ์ถ”๊ฐ€
์—ฌ์ „ํžˆ profiles.json์˜ ์‹œ์ž‘ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ "startingDiretory" : ".", ๋กœ ์ˆ˜์ •ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

๊ฒฝ๊ณ  : ์ž…๋ ฅ ์˜ค๋ฅ˜๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ๋Œ€์‹  "startingDirectory" : "." ๋ฅผ ์‚ฌ์šฉํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

์ด๊ฒƒ์€ ๋‹น์‹ ์ด ๋ฐ”๋กœ ์—ฌ๊ธฐ์—์„œ ์—ด๋ฉด ์ž˜ ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค ...
๋‚ด๊ฐ€ ์•Œ์•„ ์ฐจ๋ฆฐ ํ•œ ๊ฐ€์ง€ ๋ฌธ์ œ๋Š” ํ„ฐ๋ฏธ๋„์„ ์ •์ƒ์ ์œผ๋กœ ์—ด๋ฉด ... ๊ธฐ๋ณธ ๋””๋ ‰ํ† ๋ฆฌ๋Š” system32์ž…๋‹ˆ๋‹ค ... ํ˜น์‹œ ์ •์ƒ์ ์œผ๋กœ ์—ด์—ˆ์„ ๋•Œ ์‚ฌ์šฉ์ž ํด๋”๋ฅผ ์žฌ์ •์˜ํ•˜๊ณ  ์‚ฌ์šฉํ•˜๋„๋ก ํ•  ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๊นŒ?

์•ผ! ๋‚˜๋„์ด ๋ฌธ์ œ๊ฐ€ ์žˆ์—ˆ๋‹ค. ๋น ๋ฅด๊ณ  ๋”๋Ÿฌ์šด ์ˆ˜์ •์€ WSL ํ„ฐ๋ฏธ๋„ ๋‚ด์˜ .bashrc ํŒŒ์ผ์— cd ๋ช…๋ น์„ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.
echo 'cd ~'>> ~ / .bashrc

์ด๊ฒƒ์€ ํ„ฐ๋ฏธ๋„์„ ์—ฌ๋Š” ์œ„์น˜์— ๊ด€๊ณ„์—†์ด ํ•ญ์ƒ '~'๋””๋ ‰ํ† ๋ฆฌ์— ์žˆ๊ธฐ ๋•Œ๋ฌธ์—์ด ์Šค๋ ˆ๋“œ์˜ ์ „์ฒด ๋ชฉ์ ์„ ๋ฌดํšจํ™”ํ•ฉ๋‹ˆ๋‹ค. wsl / msys2 / mingw64 / git bash์—์„œ ํ„ฐ๋ฏธ๋„์„ ์—ฐ ํ›„ 'cd ~'๋ฅผ ์ž…๋ ฅํ•˜์‹ญ์‹œ์˜ค.

"์—ฌ๊ธฐ์—์„œ Windows ํ„ฐ๋ฏธ๋„ ์—ด๊ธฐ"๋ฅผ ํด๋ฆญํ•˜๋ฉด ์‹œ์ž‘ ๋””๋ ‰ํ„ฐ๋ฆฌ๊ฐ€ "~"๋กœ ์„ค์ •๋ฉ๋‹ˆ๋‹ค. ๊ฐ„๋‹จํžˆ if ์กฐ๊ฑด์„ ์ถ”๊ฐ€ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
if [ "$PWD" = "/mnt/c/Windows/System32" ]; then cd ~ fi

@ Restia666Ashdoll ๋ฐ @musm , ico ํŒŒ์ผ์„ LocalAppData ํด๋”์— ๋ณต์‚ฌ ํ•œ ํ›„ ๋กœ๊ทธ ์•„์›ƒํ•˜๊ณ  ๋‹ค์‹œ ๋กœ๊ทธ์ธํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋ฉด ์•„์ด์ฝ˜์ด ๋‚˜ํƒ€๋‚ฉ๋‹ˆ๋‹ค.

image

"์ฝ”๋“œ๋กœ ์—ด๊ธฐ"์˜ต์…˜์„ ์–ด๋–ป๊ฒŒ ์ถ”๊ฐ€ ํ–ˆ์Šต๋‹ˆ๊นŒ?

@ Restia666Ashdoll ๋ฐ @musm , ico ํŒŒ์ผ์„ LocalAppData ํด๋”์— ๋ณต์‚ฌ ํ•œ ํ›„ ๋กœ๊ทธ ์•„์›ƒํ•˜๊ณ  ๋‹ค์‹œ ๋กœ๊ทธ์ธํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋ฉด ์•„์ด์ฝ˜์ด ๋‚˜ํƒ€๋‚ฉ๋‹ˆ๋‹ค.
image

"์ฝ”๋“œ๋กœ ์—ด๊ธฐ"์˜ต์…˜์„ ์–ด๋–ป๊ฒŒ ์ถ”๊ฐ€ ํ–ˆ์Šต๋‹ˆ๊นŒ?

์ฝ”๋“œ๋ฅผ ์„ค์น˜ํ•  ๋•Œ ์ฝ”๋“œ ์˜ต์…˜์œผ๋กœ ์—ด๋ฆฐ ์…ธ์„ ์ถ”๊ฐ€ํ• ์ง€ ๋ฌป๋Š” ๋ฉ”์‹œ์ง€๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.

Windows ์Šคํ† ์–ด์—์„œ ํ„ฐ๋ฏธ๋„์„ ์„ค์น˜ ํ•œ ์‚ฌ์šฉ์ž์˜ ๊ฒฝ์šฐ ๋ช…๋ น์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

explorer.exe shell:appsFolder\Microsoft.WindowsTerminal_8wekyb3d8bbwe!App

Windows Terminal ์€ ๋˜ํ•œ wt.exe ๋ฅผ ๊ฒฝ๋กœ์— ์ถ”๊ฐ€ํ•˜๋ฏ€๋กœ ์œ„์˜ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜๊ธฐ ์‰ฌ์šด ์ฝ”๋“œ ์กฐ๊ฐ์ด ์ค‘๋ณต๋ฉ๋‹ˆ๋‹ค.

์—ฌ๊ธฐ์—์žˆ๋Š” ๋ชจ๋“  ์‚ฌ๋žŒ์˜ ์ž‘์—…์— ๋ฐ•์ˆ˜๋ฅผ ๋ณด๋‚ด์ง€ ๋งŒ ์ €์™€ ๋งŽ์€ ๋ถ„๋“ค์—๊ฒŒ๋„ ์ถฉ๋ถ„ํžˆ ์ข‹์€ ๊ฐ„๋‹จํ•œ ์†”๋ฃจ์…˜์„ ์ œ๊ณตํ•˜๊ณ  ์‹ถ์Šต๋‹ˆ๋‹ค.

์ค‘์š” ์ค€๋น„ : Windows ํ„ฐ๋ฏธ๋„ ์„ค์ • ํŒŒ์ผ์—์„œ ๊ธฐ๋ณธ ์…ธ์˜ ํ”„๋กœํ•„์— "ํ˜„์žฌ ์ž‘์—… ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์‹œ์ž‘"์„ ์˜๋ฏธํ•˜๋Š” "startingDirectory": ".", ๊ฐ€ ํฌํ•จ๋˜์–ด ์žˆ๋Š”์ง€ ํ™•์ธํ•˜์‹ญ์‹œ์˜ค. (์ด ๋‹จ๊ณ„๋ฅผ ๊ฑด๋„ˆ ๋›ฐ๋ฉด Windows Terminal์€ ์ž‘์—… ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ๋ฌด์‹œํ•˜๊ณ  ํ•ญ์ƒ ํ™ˆ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค.)

์ด์ œ ์ง€์นจ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

  1. ํƒ์ƒ‰๊ธฐ์—์„œ ์žฌ๋ฏธ์žˆ๋Š” ํด๋”๋กœ ์ด๋™ํ•˜์‹ญ์‹œ์˜ค!
  2. Ctrl-L์„ ๋ˆ„๋ฅด๊ณ  wt ๋ฅผ ์ž…๋ ฅ ํ•œ ๋‹ค์Œ Enter ํ‚ค๋ฅผ ๋ˆ„๋ฆ…๋‹ˆ๋‹ค. ๊ทธ๊ฒŒ ๋‹ค์•ผ! ๋๋‚œ! ๋ณด๊ณ ์žˆ๋Š” ํด๋”์—์„œ Windows ํ„ฐ๋ฏธ๋„์ด ์—ด๋ฆฝ๋‹ˆ๋‹ค.

์œ„์˜ ๊ตต๊ฒŒ ํ‘œ์‹œ๋œ ํ…์ŠคํŠธ๋Š” ์‹ค์ œ ์ง€์นจ์ž…๋‹ˆ๋‹ค. ํ—คํ—ค. ๊ทธ๊ฒŒ ๋‹ค์•ผ!

์˜ค๋ฅธ์ชฝ ํด๋ฆญ ๋ฉ”๋‰ด ํ•ญ๋ชฉ์ด ํ•„์š”ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ํ˜„์žฌ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ํ„ฐ๋ฏธ๋„์„ ์—ด์–ด์•ผํ•˜๋Š” ๊ฒฝ์šฐ๋Š” ๋งค์šฐ ๋“œ๋ญ…๋‹ˆ๋‹ค. Ctrl-L, wt , Enter๋งŒ์œผ๋กœ๋„ ๊ดœ์ฐฎ์Šต๋‹ˆ๋‹ค. ๊ทธ๊ฒƒ์€ ๋งค์šฐ ๋น ๋ฅด๊ณ  ez์ž…๋‹ˆ๋‹ค.

@VideoPlayerCode ํ›Œ๋ฅญํ•œ ์†”๋ฃจ์…˜์ž…๋‹ˆ๋‹ค! ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!

@VideoPlayerCode ํ›Œ๋ฅญํ•œ ํŒ์— ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค! ํ•˜์ง€๋งŒ "๊ด€๋ฆฌ์ž ๊ถŒํ•œ์œผ๋กœ ์‹คํ–‰"์‚ฌ๋ก€๋Š” ํ•ด๊ฒฐ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

@yanglr ์†”๋ฃจ์…˜์„ ์‚ฌ์šฉํ•œ ํ›„ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜๋ฉด
explorer_error

% LOCALAPPDATA % ๋Œ€์‹  ์ „์ฒด ๊ฒฝ๋กœ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๊ทธ๋ž˜์„œ ๋Œ€์‹ 
[HKEY_CLASSES_ROOT \ Directory \ Background \ shellwt ๋ช…๋ น]
@ = "% LOCALAPPDATA % \ Microsoft \ WindowsApps \ wt.exe"

์‚ฌ์šฉ ( 'thull'๋Œ€์‹  ์‚ฌ์šฉ์ž ์ด๋ฆ„ ์‚ฌ์šฉ) :
[HKEY_CLASSES_ROOT \ Directory \ Background \ shellwt ๋ช…๋ น]
@ = ""C : \ Users \ thullAppData \ Local \ Microsoft \ WindowsAppswt.exe ""

@ ad1tyawagh ๋„์™€ ์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค! :-)

@lllopo ๋„์™€ ๋“œ๋ฆฌ๊ณ  ์‹ถ์ง€๋งŒ Windows Store ์•ฑ์—์„œ๋Š” "๊ด€๋ฆฌ์ž

๋‚ด ํ˜„์žฌ ์„ค์ •์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

  • PowerShell์€ ๋‚ด ๊ธฐ๋ณธ ์…ธ์ž…๋‹ˆ๋‹ค.
  • ๋‚ด PowerShell ๊ตฌ์„ฑ์—๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์ถ”๊ฐ€ ์ค„์ด ํฌํ•จ๋ฉ๋‹ˆ๋‹ค.
function EditProfile { notepad "$profile" }
function GoAdmin { start-process pwsh โ€“verb runAs }

GoAdmin์„ ์ž…๋ ฅํ•˜๋ฉด ๊ด€๋ฆฌ์ž ๊ถŒํ•œ ๋Œ€ํ™” ์ƒ์ž๊ฐ€ ๋‚˜ํƒ€๋‚˜๊ณ  PowerShell์ด โ€‹โ€‹ํƒ์ƒ‰ ํ•œ ์ •ํ™•ํ•œ ํด๋”์˜ ๋ณ„๋„ ์…ธ ์ฐฝ (Windows ํ„ฐ๋ฏธ๋„์—์„œ ํ˜ธ์ŠคํŒ…๋˜์ง€ ์•Š์Œ)์—์„œ ๊ด€๋ฆฌ์ž๋กœ ์‹œ์ž‘๋ฉ๋‹ˆ๋‹ค. ์ด๊ฒƒ์€ ์ดˆ์ฝœ๋ฆฟ ์„ค์น˜ / ์—…๋ฐ์ดํŠธ ํŒจํ‚ค์ง€์—๋งŒ ์‚ฌ์šฉํ•˜๊ธฐ ๋•Œ๋ฌธ์— ํŽธ๋ฆฌํ•˜๊ณ  ์ถฉ๋ถ„ํ•ฉ๋‹ˆ๋‹ค. ๋‹ค๋ฅธ ๊ฒƒ์— ๋Œ€ํ•œ ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์ด ์‹ค์ œ๋กœ ํ•„์š”ํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.

๊ทธ๋Ÿฌ๋‚˜ ๋‹น์‹ ์„ ์œ„ํ•ด ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์œผ๋กœ Windows ํ„ฐ๋ฏธ๋„ ์ž์ฒด๋ฅผ ์‹œ์ž‘ํ•  ์ˆ˜ ์žˆ๋„๋ก ๊ฐœ์„ ํ•˜๋ ค๊ณ ํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ์‹คํŒจํ•ฉ๋‹ˆ๋‹ค.

# Works but not admin rights:
function GoAdmin { start-process "$env:LOCALAPPDATA\Microsoft\WindowsApps\wt.exe" }

function GoAdmin { start-process explorer.exe shell:appsFolder\Microsoft.WindowsTerminal_8wekyb3d8bbwe!App }

# Fails with "This command cannot be run due to the error: The file cannot be accessed by the system.":
function GoAdmin { start-process "$env:LOCALAPPDATA\Microsoft\WindowsApps\wt.exe" -verb runAs }

# Successfully launches explorer.exe as admin, which in turn launches Windows Terminal as non-admin, meh:
function GoAdmin { start-process explorer.exe shell:appsFolder\Microsoft.WindowsTerminal_8wekyb3d8bbwe!App -verb runAs }

๋”ฐ๋ผ์„œ "์‹œ์Šคํ…œ์—์„œ ํŒŒ์ผ์— ์•ก์„ธ์Šค ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค"์˜ค๋ฅ˜๋ฅผ ์ˆ˜์ •ํ•  ์ˆ˜์žˆ๋Š” ๋ฐฉ๋ฒ•์ด์—†๋Š” ํ•œ PowerShell ์Šคํฌ๋ฆฝํŠธ๋ฅผ ํ†ตํ•ด Windows ํ„ฐ๋ฏธ๋„์„ ๊ด€๋ฆฌ์ž๋กœ ์‹œ์ž‘ํ•  ์ˆ˜์žˆ๋Š” ๋ฐฉ๋ฒ•์ด ์—†์Šต๋‹ˆ๋‹ค. ์•„๋งˆ๋„ ๋ˆ„๊ตฐ๊ฐ€๊ฐ€ ๋ฐฉ๋ฒ•์„ ์•Œ์•„๋‚ผ ๊ฒƒ์ž…๋‹ˆ๋‹ค. (ํŽธ์ง‘ : ๊ด€๋ฆฌ์ž๊ฐ€ Windows ํ„ฐ๋ฏธ๋„์ด ๊ด€๋ฆฌ์ž๊ฐ€ ์•„๋‹Œ ์‚ฌ์šฉ์ž๋กœ ์„ค์น˜๋˜์–ด ๊ด€๋ฆฌ์ž๊ฐ€ ์ฐพ์„ ์ˆ˜ ์—†๋‹ค๋Š” ๊ฒƒ์ด๋ฏ€๋กœ wt ์‹œ์ž‘ ์‹คํŒจ์— ๋Œ€ํ•œ ์„ค๋ช…์ฒ˜๋Ÿผ ๋ณด์ž…๋‹ˆ๋‹ค. ์ ์–ด๋„์ด ๋ฉ”์‹œ์ง€๋ฅผ ์ดํ•ดํ•˜๋Š” ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค. )

๊ทธ๋ ‡์ง€ ์•Š์€ ๊ฒฝ์šฐ ์—ฌ๊ธฐ์—์„œ ์ œ๊ณต ํ•œ GoAdmin ๋ช…๋ น์ด ๋งˆ์Œ์— ๋“ค์—ˆ ์œผ๋ฉดํ•ฉ๋‹ˆ๋‹ค.์ด ๋ช…๋ น์€ ๊ด€๋ฆฌ์ž๋กœ ๋ณ„๋„์˜ PowerShell ์ฐฝ์„ ์„ฑ๊ณต์ ์œผ๋กœ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค. ์ดˆ์ฝœ๋ › ํŒจํ‚ค์ง€๋ฅผ ๊ด€๋ฆฌํ•˜๋Š” ๋ฐ ์ถฉ๋ถ„ํ•˜๋ฏ€๋กœ Windows ํ„ฐ๋ฏธ๋„ ์ฐฝ์ด ์•„๋‹ˆ๋ผ๋Š” ๊ฒƒ๋„ ์‹ ๊ฒฝ ์“ฐ์ง€ ์•Š์Šต๋‹ˆ๋‹ค ... ( "๊ด€๋ฆฌ์ž ๊ถŒํ•œ"์„ ์˜๋ฏธํ•˜๊ธฐ ๋•Œ๋ฌธ์— Windows ํ„ฐ๋ฏธ๋„์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š” ๊ฒƒ๋„ ๋งค์šฐ ์œ ์šฉํ•ฉ๋‹ˆ๋‹ค. ์…ธ์€ ์‹œ๊ฐ์ ์œผ๋กœ ๋‹ค๋ฅด๊ธฐ ๋•Œ๋ฌธ์— ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์€ ์œ„ํ—˜ํ•˜๊ณ  ์…ธ์„ ํ†ตํ•ด ์‹คํ–‰ํ•˜๋Š” ๋ชจ๋“  ํ”„๋กœ๊ทธ๋žจ์— ์ „ํŒŒ๋˜๊ธฐ ๋•Œ๋ฌธ์— ์ผ๋ฐ˜ ์ž‘์—…์— ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค. ๋”ฐ๋ผ์„œ ๋ถ€์ฃผ์˜ํ•˜๊ฒŒ ์‚ฌ์šฉํ•ด์„œ๋Š” ์•ˆ๋ฉ๋‹ˆ๋‹ค.)

์ถ”์‹  : ์˜ค๋ž˜๋œ ๊ธฐ๋ณธ ์ œ๊ณต "Windows PowerShell"์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ pwsh ๋ฅผ powershell ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ๋Œ€์‹  https://github.com/PowerShell/PowerShell ( choco install powershell-core ๋ฅผ ํ†ตํ•ด ์„ค์น˜๋จ)์—์„œ PowerShell Core 6์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

๋˜ ๋‹ค๋ฅธ ํŒ : Windows ํ„ฐ๋ฏธ๋„ ์ž์ฒด๋ฅผ ์ž‘์—… ํ‘œ์‹œ ์ค„์˜ ๊ฐ€์žฅ ์™ผ์ชฝ์— ๊ณ ์ •ํ–ˆ์Šต๋‹ˆ๋‹ค. ์ด๋ ‡๊ฒŒํ•˜๋ฉด Win + 1์„ ๋ˆŒ๋Ÿฌ ์ฆ‰์‹œ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค (๋˜๋Š” ์ด๋ฏธ ์‹คํ–‰ ๋œ ๊ฒฝ์šฐ ํฌ์ปค์Šค๋ฅผ ์ œ๊ณต). ๋งค์šฐ ํŽธ๋ฆฌํ•ฉ๋‹ˆ๋‹ค. ๋˜ํ•œ Windows ํ„ฐ๋ฏธ๋„ ์ž์ฒด๋ฅผ ๊ด€๋ฆฌ์ž๋กœ ์‹คํ–‰ํ•˜๋ ค๋ฉด ์ž‘์—… ํ‘œ์‹œ ์ค„ ์•„์ด์ฝ˜์„ ๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ ๋‹จ์ถ”๋กœ ํด๋ฆญ ํ•œ ๋‹ค์Œ ๋‚˜ํƒ€๋‚˜๋Š” ๋ฉ”๋‰ด์—์„œ "Windows ํ„ฐ๋ฏธ๋„"์„ ๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ ๋‹จ์ถ”๋กœ ํด๋ฆญํ•˜๊ณ  ๋งˆ์ง€๋ง‰์œผ๋กœ "๊ด€๋ฆฌ์ž ๊ถŒํ•œ์œผ๋กœ ์‹คํ–‰"์„ ํด๋ฆญํ•˜๋ฉด๋ฉ๋‹ˆ๋‹ค.

๋งˆ์ง€๋ง‰ ํŒ : startingDirectory๋ฅผ "."๋กœ ์„ค์ • ํ•œ ํ›„ ๋ฐ”๋กœ ๊ฐ€๊ธฐ (์˜ˆ : ๊ณ ์ • ๋œ ์ž‘์—… ํ‘œ์‹œ ์ค„ ๋˜๋Š” ์‹œ์ž‘ ๋ฉ”๋‰ด๋ฅผ ํ†ตํ•ด)์—์„œ ์‹œ์ž‘ํ•˜๋ฉด Windows ํ„ฐ๋ฏธ๋„์ด ํ•ญ์ƒ system32 ํด๋”์—์„œ ์—ด๋ฆฝ๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ Win + R ๋˜๋Š” ํƒ์ƒ‰๊ธฐ๋ฅผ ํ†ตํ•ด _not_ ํ›„์ž์˜ ๋ฐฉ๋ฒ•์€ ์ œ๋Œ€๋กœ ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค)). ํ•˜์ง€๋งŒ ํ™ˆ ํด๋”๋กœ ์ด๋™ํ•˜๋Š” ๋น ๋ฅธ ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๋‹ค. cd ๋ฅผ ์ž…๋ ฅํ•˜๊ณ  Enter ํ‚ค๋ฅผ ๋ˆ„๋ฅด๋ฉด ํ•ญ์ƒ ๋ฐ”๋กœ ํ™ˆ์œผ๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค.

๋˜ ๋‹ค๋ฅธ ๋ฐฉ๋ฒ•์€ Scoop์—์„œ sudo ๋ช…๋ น์„ ์„ค์น˜ํ•˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.
scoop install sudo
http://blog.lukesampson.com/sudo-for-windows
์ƒ์Šน ๋œ ๊ถŒํ•œ์œผ๋กœ ๋ช…๋ น์„ ์‹คํ–‰ํ•˜๋Š” ๊ฒƒ ์™ธ์—๋„ sudo powershell ๋˜๋Š” sudo cmd ๋ช…๋ น์„ ์‚ฌ์šฉํ•˜์—ฌ ์ƒ์Šน ๋œ PowerShell / ๋ช…๋ น ํ”„๋กฌํ”„ํŠธ ์„ธ์…˜์„ ์‹œ์ž‘ํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.

@ Restia666Ashdoll ๋‚ด ๋Œ€๋‹ต์—์„œ ์–ธ๊ธ‰ํ–ˆ๋“ฏ์ด ํƒ€์‚ฌ "sudo"๋ช…๋ น์ด ํ•„์š”ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. PowerShell์—๋Š” ๊ธฐ๋ณธ ์ œ๊ณต "sudo"๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/start-process?view=powershell-6#examples

์˜ˆ์ œ 5 : ๊ด€๋ฆฌ์ž๋กœ PowerShell ์‹œ์ž‘

์ด ์˜ˆ์—์„œ๋Š” "๊ด€๋ฆฌ์ž ๊ถŒํ•œ์œผ๋กœ ์‹คํ–‰"์˜ต์…˜์„ ์‚ฌ์šฉํ•˜์—ฌ PowerShell์„ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค.

Start-Process -FilePath "powershell" -Verb RunAs

๋‚ด ์˜ˆ์ œ์—์„œ GoAdmin ๋กœ ๋ž˜ํ•‘ํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ๋ˆ„๊ตฐ๊ฐ€๋Š” "sudo"๋ผ๋Š” ์ด๋ฆ„์˜ ํ•จ์ˆ˜๋กœ ๋žฉํ•‘ํ•˜์—ฌ ์–ด๋–ค ๋ช…๋ น์„ ๋ฐ›๋„๋ก ๋งŒ๋“ค ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.

์˜ˆ๋ฅผ ๋“ค์–ด ์˜๊ฐ์œผ๋กœ touch ๋ช…๋ น์„ ์‚ฌ์šฉํ•˜์—ฌ 0 ๋ฐ”์ดํŠธ์˜ ๋นˆ ํŒŒ์ผ์„ ์‰ฝ๊ฒŒ ๋งŒ๋“ค๊ณ  ์‹ถ์—ˆ๊ณ  ํ•œ ๋ฒˆ์— ์—ฌ๋Ÿฌ ํŒŒ์ผ์— ๋Œ€ํ•ด ์—ฌ๋Ÿฌ ์ธ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ๋ฅผ ์›ํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋ž˜์„œ์ด PowerShell ํ•จ์ˆ˜๋ฅผ ์ž‘์„ฑํ•˜๊ณ  ํ•ญ์ƒ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ๊ตฌ์„ฑ์— ๋„ฃ์—ˆ์Šต๋‹ˆ๋‹ค.

function touch() { for ($i=0; $i -le $args.length; $i++) { $name = $args[$i]; if ($name -ne $null -and $name.GetType().Name -eq "String") { $name = $name.Trim(); if ($name.length -gt 0) { New-Item -ItemType file "$name" } } } }

์ผ๋ฐ˜์ ์ธ sudo ๋ช…๋ น์„ ์ž‘์„ฑํ•˜๋ ค๋Š” ๊ฒฝ์šฐ ๋งค์šฐ ์œ ์‚ฌํ•œ ์ž‘์—…์„ ์ˆ˜ํ–‰ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋˜๋Š” ์œ„์™€ ๊ฐ™์ด GoAdmin ๋ฅผ ์‚ฌ์šฉํ•˜์‹ญ์‹œ์˜ค ...

@VideoPlayerCode ์ด ๋ช…๋ น์€ ๋ช‡ ๊ฐ€์ง€ powershell ๋ช…๋ น์—๋งŒ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. sudo pip install httpie ๋˜๋Š” sudo Install-Module oh-my-posh -Force . ์  ์žฅ, sudo choco install mpv ์™€ ๊ฐ™์€ ์ผ๋ฐ˜ powershell์—์„œ Chocolatey๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค (๊ฐœ์ธ์ ์œผ๋กœ Chocolatey๋ฅผ ์ข‹์•„ํ•˜์ง€๋Š” ์•Š์ง€๋งŒ). ๋ฌผ๋ก  Windows ์šฉ sudo์—๋„ ์ œํ•œ์ด ์žˆ์Šต๋‹ˆ๋‹ค.

@ Restia666Ashdoll ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. ์œ„์—์„œ ์„ค๋ช…ํ•œ "sudo"๋ช…๋ น์„ ์ž‘์„ฑํ•˜๋„๋ก ์ €๋ฅผ ๋ฐ€์–ด

function sudo() {
    [string[]]$cmd = @("-command")
    for ($i=0; $i -le $args.length; $i++) {
        $val = $args[$i]
        if ($val -ne $null) {
            $cmd += [string]$val;
        }
    }
    if ($cmd.length -ge 2) {
        $cmd += "; pause"
        #Write-Host $cmd
        Start-Process pwsh -ArgumentList $cmd โ€“Verb RunAs
    }
}

_ (๋ˆ„๊ตฐ๊ฐ€๊ฐ€ Windows์™€ ํ•จ๊ป˜ ์ œ๊ณต๋˜๋Š” ์˜ค๋ž˜๋œ powershell ๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋‹ค๋ฉด pwsh ๋ฅผ ์œ„์˜ powershell ๋กœ ๋ฐ”๊พธ์‹ญ์‹œ์˜ค.) _

๊ด€๋ฆฌ์ž๊ฐ€ ์•„๋‹Œ ์„ธ์…˜์—์„œ sudo choco install sysinternals ๋ฅผ ์‹คํ–‰ํ•˜๋ฉด ์ด์ œ ๊ด€๋ฆฌ์ž ์„ธ์…˜์—์„œ ํ•ด๋‹น ๋ช…๋ น์ด ์‹คํ–‰๋ฉ๋‹ˆ๋‹ค.

PowerShell์˜ Start-Process๋Š” "ํ˜ธ์ŠคํŠธ"๋น„ ๊ด€๋ฆฌ ์…ธ ๋‚ด๋ถ€์—์„œ ์ง์ ‘ ์ถœ๋ ฅ๋˜๋Š” ๊ด€๋ฆฌ์ž ํ•˜์œ„ ์…ธ ์ƒ์„ฑ์„ ์ง€์›ํ•˜์ง€ ์•Š์œผ๋ฏ€๋กœ ํŒ์—… ์ฐฝ์—์„œ ์‹คํ–‰๋˜๊ณ  ํ•ด๋‹น ์ฐฝ์„ ๋‹ซ๊ธฐ ์ „์— ๊ฒฐ๊ณผ๋ฅผ ์ฝ์„ ์ˆ˜ ์žˆ๋„๋ก ์ผ์‹œ ์ค‘์ง€๋ฉ๋‹ˆ๋‹ค. ๋‚˜์—๊ฒŒ ์ถฉ๋ถ„ํ•ฉ๋‹ˆ๋‹ค.

https://github.com/lukesampson/psutils/blob/master/sudo.ps1 (์ œ์•ˆํ•œ ์Šคํฌ๋ฆฝํŠธ)์„ ์‚ดํŽด ๋ณด์•˜์ง€๋งŒ ๊ด€๋ฆฌ์ž์˜ ์ถœ๋ ฅ์„ ์ฒจ๋ถ€ํ•˜๊ธฐ ์œ„ํ•ด ์ปค๋„ ํ•จ์ˆ˜๋ฅผ ํ˜ธ์ถœํ•˜๋Š” ๊ฒƒ์ด ์กฐ๊ธˆ ์ด์ƒํ•˜๋‹ค๊ณ  ๋Š๊ผˆ์Šต๋‹ˆ๋‹ค. ์‹คํ–‰์ค‘์ธ ํ„ฐ๋ฏธ๋„์— ํ•˜์œ„ ํ”„๋กœ์„ธ์Šค๋ฅผ ์ถ”๊ฐ€ํ•˜๊ณ  ๊ด€๋ฆฌ ํ”„๋กœ์„ธ์Šค์˜ ์ž…๋ ฅ / ์ถœ๋ ฅ์ด ๋น„ ๊ด€๋ฆฌ ํ”„๋กœ์„ธ์Šค (yikes)์— ์˜ํ•ด ์†Œ์œ  ๋  ๋•Œ ๊ฐ€๋Šฅํ•œ ๋ชจ๋“  ์•…์šฉ ๋˜๋Š” ํ˜ธ์ŠคํŠธ ํ”„๋กœ์„ธ์Šค๋กœ ์•ˆ์ „ํ•˜์ง€ ์•Š์€ ๊ถŒํ•œ ์„ " https://github.com/noseratio/choco/tree/master/wsudo์— wsudo๋ผ๋Š” ๋˜ ๋‹ค๋ฅธ ์ด๋ฆ„์ด ์žˆ์—ˆ์ง€๋งŒ ์‹ค์ œ๋กœ ์ž์„ธํžˆ ์‚ดํŽด ๋ณด์ง€๋Š” ์•Š์•˜์Šต๋‹ˆ๋‹ค. ๋Œ€์‹  ๋‚ด ๋ฒ„์ „์„ ์ž‘์„ฑํ–ˆ์Šต๋‹ˆ๋‹ค.

๋‹ค์‹œ ๋ฐ€์–ด ์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. ๊ด€๋ฆฌ์ž๋กœ์„œ ๋‹จ์ผ ์ž‘์—…์„ ๋น ๋ฅด๊ฒŒ ์‹คํ–‰ํ•˜๋Š” ๋ช…๋ น์ด ์žˆ์œผ๋ฉด ์ข‹์Šต๋‹ˆ๋‹ค. ์•ž์„œ ๊ฒŒ์‹œ ํ•œ ๋‚ด GoAdmin ๋ช…๋ น์€ ํ‰์†Œ์ฒ˜๋Ÿผ ์—ฌ๋Ÿฌ ์ž‘์—…์„ ์ž…๋ ฅ ํ•  ์ˆ˜์žˆ๋Š” ๋ณ„๋„์˜ ๊ด€๋ฆฌ ์ฝ˜์†”์„ ์‹œ์ž‘ํ•˜๋Š” ๋ฐ ์—ฌ์ „ํžˆ ๋งค์šฐ ์œ ์šฉํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ์ด์ œ์ด ์ƒˆ๋กœ์šด ๋ช…๋ น์„ ์‚ฌ์šฉํ•˜๋ฉด ๋‹จ์ผ ๋ช…๋ น์„ ์‹คํ–‰ํ•˜๋Š” ๊ฒƒ์ด ์กฐ๊ธˆ ๋” ์‰ฌ์›Œ์กŒ์Šต๋‹ˆ๋‹ค!

์ถ”์‹  : ๋ˆ„๊ตฐ๊ฐ€๊ฐ€์ด ๊ธฐ๋Šฅ์ด๋‚˜ ๋‹ค๋ฅธ ๋ชจ๋“  ๊ธฐ๋Šฅ์„ ์–ด๋””์— ๋‘˜์ง€ ๊ถ๊ธˆํ•˜๋‹ค๋ฉด Write-Host $Profile (Powershell์—์„œ write-host๋Š” "echo"์ž„)๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ํ”„๋กœํ•„ ๊ฒฝ๋กœ๋ฅผ ํ™•์ธํ•˜๊ณ  ๋ˆ„๋ฝ ๋œ ํŒŒ์ผ์„ ๋งŒ๋“  ๋‹ค์Œ ๊ฑฐ๊ธฐ์— ํ•จ์ˆ˜๋ฅผ ๋„ฃ๊ณ  PowerShell์„ ๋‹ค์‹œ ์‹œ์ž‘ํ•˜์‹ญ์‹œ์˜ค.

(์ด๋Ÿฌํ•œ "์ปค๋„"๊ธฐ๋Šฅ์€ ์‹ค์ œ๋กœ์ด ํŒ€์—์„œ ๊ณต์‹์ ์œผ๋กœ ์ง€์›ํ•˜๋Š” ์ฝ˜์†” API์ด๋ฉฐ, ๊ธฐ์กด์˜ ์ด์œ ๋กœ kernel32 ๋ผ๋Š” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์— ์žˆ์Šต๋‹ˆ๋‹ค.)

@ DHowett-MSFT ์•„. Luke Sampson์˜ sudo.ps1 ์ฝ”๋“œ๋Š” DllImport("kernel32.dll") ๋ผ๊ณ  ๋งํ•˜๊ณ  ์žˆ์ง€๋งŒ ์ด๋Ÿฌํ•œ ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๊ด€๋ฆฌ ์…ธ์˜ ์ถœ๋ ฅ์„ ํ˜„์žฌ ์…ธ๋กœ ๋ฆฌ๋””๋ ‰์…˜ํ•˜๋Š” ๊ฒƒ์ด ์™„์ „ํžˆ ๊ดœ์ฐฎ๋‹ค๋Š” ๋ง์ž…๋‹ˆ๊นŒ?

์†”์งํžˆ ๋งํ•˜๋ฉด ์œ ๋‹‰์Šค ์‹œ์Šคํ…œ์—์„œ sudo์ฒ˜๋Ÿผ ์ž‘๋™ํ•œ๋‹ค๊ณ  ๊ฐ€์ •ํ•ฉ๋‹ˆ๋‹ค. Scoop์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฑฐ์˜ ๋ชจ๋“  ์‚ฌ๋žŒ๋“ค์ด ๊ทธ๊ฒƒ์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. ๋‚ด๊ฐ€ ์›ํ•˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค-ํ˜„์žฌ ์…ธ ๋‚ด์—์„œ ์ƒ์Šน ๋œ ๊ถŒํ•œ์œผ๋กœ ๋ช…๋ น์„ ์‹คํ–‰ํ•˜์‹ญ์‹œ์˜ค. ๊ทธ๋ฆฌ๊ณ  ๋งˆ์ดํฌ๋กœ ์†Œํ”„ํŠธ๊ฐ€ ์ ์ ˆํ•œ '์œˆ๋„์šฐ ์šฉ ์ˆ˜๋„'๋ฅผ ๋งŒ๋“ค์—ˆ๋‹ค๋ฉด ๋ชจ๋“  ์‚ฌ๋žŒ์ด ์›ํ•˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.

์ด ์ฃผ์ œ์— ๋Œ€ํ•œ ํ›Œ๋ฅญํ•œ ํ† ๋ก ์— ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค! ๋‹ค๋ฅธ ๊ณณ์—์„œ ์ƒํ™ฉ์— ๋งž๋Š” ๋ฉ”๋‰ด ์˜ต์…˜์ด ์•„๋‹Œ ๊ฒƒ์— ๋Œ€ํ•ด ํ† ๋ก ์„ ์ „ํ™˜ ํ•˜์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ? sudo ๊ฒฝ์šฐ # 1032

๋„ค, ์–ด๋–ค ์‚ฌ๋žŒ๋“ค์€ "์ˆ˜๋„"๋กœ๊ฐ€๋Š” ๊ธธ์„ ์š”์ฒญํ–ˆ๊ณ  ์ƒํ™ฉ์ด ์กฐ๊ธˆ ํƒˆ์„ ํ–ˆ์Šต๋‹ˆ๋‹ค. ;-)

@ DHowett-MSFT ์ฃผ์ œ๋ฅผ ๋ฒ—์–ด๋‚œ ๊ฒƒ์— ๋Œ€ํ•ด ์ฃ„์†กํ•ฉ๋‹ˆ๋‹ค. ๊ด€๋ฆฌ์ž๋กœ ํ„ฐ๋ฏธ๋„์„ ์‹œ์ž‘ํ•  ๊ฐ€๋Šฅ์„ฑ์ด ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ๋ฐฉ๊ธˆ ๋‚˜์˜จ ๊ฒƒ์ž…๋‹ˆ๋‹ค. ๋‚˜๋Š” ๋ฉˆ์ถœ ๊ฒƒ์ด๋‹ค.

์ด๋ด, ๋ฌธ์ œ ์—†์–ด! ๋ชจ๋‘์—๊ฒŒ ์ผ์–ด๋‚œ๋‹ค. :๋ฏธ์†Œ:

์—ฌ๊ธฐ ๋‚ด ์†”๋ฃจ์…˜์ด ์žˆ์Šต๋‹ˆ๋‹ค.
PowerShell 7๊ณผ ๊ฑฐ์˜ ๋™์ผํ•˜๊ฒŒ ์ž‘๋™ํ•˜๋ฉฐ ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์œผ๋กœ ์‹คํ–‰ํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.
https://github.com/nt4f04uNd/wt-contextmenu
๊ฑฐ๊ธฐ์—์„œ ๊ทธ๊ฒƒ์„ ๊ตฌํ˜„ํ•˜๋Š” ๋ฐฉ๋ฒ•๊ณผ ํ•„์š”ํ•œ ๋ชจ๋“  ํŒŒ์ผ์„ ์ฐพ์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

@ nt4f04uNd ๊ฐ€์ด๋“œ์— scoop install nicrmd ๋„ ์ถ”๊ฐ€ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?
https://github.com/ScoopInstaller/Main/blob/master/bucket/nircmd.json

@ Restia666Ashdoll ์™„๋ฃŒ

์—ฌ๊ธฐ์— ์—ด๋ฆฐ cmd ํ”„๋กฌํ”„ํŠธ๊ฐ€ ํ•„์š”ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

์ฃผ์†Œ ํ‘œ์‹œ ์ค„์—์„œ ๊ทธ๊ฒƒ์„ ํด๋ฆญํ•˜๊ณ  wt.exe๋ฅผ ์ž…๋ ฅํ•˜๊ณ  Enter๋ฅผ ๋ˆ„๋ฅด์‹ญ์‹œ์˜ค. CWD๋กœ ํ˜„์žฌ ํƒ์ƒ‰ ์ฐฝ์ด์žˆ๋Š” Windows ํ„ฐ๋ฏธ๋„.

@ em00k ๊ฐ๊ธฐ ๋‹ค๋ฅธ ์‚ฌ๋žŒ๋“ค์€ ๊ฐ์ž์˜ ์›Œํฌ ํ”Œ๋กœ์šฐ๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.

์ด์— ๋Œ€ํ•œ ์ž‘์—… ๋‚˜๋ฅผ https://github.com/microsoft/terminal/issues/1060#issuecomment -497539461 ๋‚ด ์‚ฌ์šฉ์ž ํด๋”์— ๋Œ€ํ•œ ์ดˆ๊ธฐ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด, ๋‚˜๋Š” ๋‚ด '% USERPROFILE %'๋ฅผ ๋ชฉํ‘œ๋กœ ๋ฐ”๋กœ ๊ฐ€๊ธฐ๋ฅผ ๋งŒ๋“ค๊ณ  ๊ทธ๋ฅผ ๋„ฃ์–ด ๋‚ด ์‹œ์ž‘ ๋ฉ”๋‰ด์™€ ์ž‘์—… ํ‘œ์‹œ ์ค„.

๊ทธ๋Ÿฌ๋‚˜ ํด๋” ๋งค๊ฐœ ๋ณ€์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ wt.exe ์•ฑ์—์„œ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์—ด ์ˆ˜ ์žˆ๋‹ค๋ฉด ๋งค์šฐ ์œ ์šฉ ํ•  ๊ฒƒ์ž…๋‹ˆ๋‹ค.

image

0.7.3451.0์—์„œ ์ €์—๊ฒŒ ๋„์›€์ด ๋œ ๊ฒƒ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค ( @yanglr ์˜ ์›๋ž˜ ์ฃผ์„์— ํ•„์š”ํ•œ ์ผ๋ถ€ ๋ณ€๊ฒฝ ์‚ฌํ•ญ)

1) ๊ณต์‹ Windows ํ„ฐ๋ฏธ๋„ ์•„์ด์ฝ˜์„ ๋‹ค์šด๋กœ๋“œํ•˜์—ฌ ์–ด๋”˜๊ฐ€์— ๋‘ก๋‹ˆ๋‹ค.
https://raw.githubusercontent.com/microsoft/terminal/master/res/terminal.ico

2) Windows ํ„ฐ๋ฏธ๋„ ๊ตฌ์„ฑ์„ ํŽธ์ง‘ํ•˜์‹ญ์‹œ์˜ค. ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ ํ˜„์žฌ ๋””๋ ‰ํ„ฐ๋ฆฌ๋ฅผ ์—ด ํ”„๋กœํ•„์„ ๋งŒ๋“ญ๋‹ˆ๋‹ค.
๋”ํ•˜๋‹ค
"startingDirectory": "."
ํ˜„์žฌ ๋””๋ ‰ํ† ๋ฆฌ๊ฐ€ ์‹œ์ž‘ ๋””๋ ‰ํ† ๋ฆฌ๊ฐ€๋˜๋„๋ก ํ•ด๋‹น ํ”„๋กœํ•„์—

3) wt.reg ํŒŒ์ผ์„ ๋งŒ๋“ค๊ณ  ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค. ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ค‘๊ด„ํ˜ธ ์•ˆ์˜ ํ•ญ๋ชฉ์„ ์‹ค์ œ ๊ฒฝ๋กœ (์ด์ค‘ ์Šฌ๋ž˜์‹œ ๊ธฐ์–ต)๋กœ ๋Œ€์ฒดํ•ฉ๋‹ˆ๋‹ค.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Windows Terminal Here"
"Icon"="{full_path_to_icon}\\terminal.ico"

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="C:\\Users\\{windows_user_directory}\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe"

(ํ˜„์žฌ ์‚ฌ์šฉ์ž ๋งŒ ๋ณ€๊ฒฝํ•˜๋ ค๋Š” ๊ฒฝ์šฐ HKEY_CURRENT_USER๋ฅผ HKEY_CLASSES_ROOT๋กœ ๋Œ€์ฒด)

4) ํ…Œ์ŠคํŠธ. ๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜๋ฉด ํ˜„์žฌ์žˆ๋Š” ๋””๋ ‰ํ† ๋ฆฌ๊ฐ€ ์—ด๋ฆฝ๋‹ˆ๋‹ค.
cmd.exe๋ฅผ ๊ธฐ๋ณธ ํ”„๋กœํ•„๋กœ ์‚ฌ์šฉํ•˜์—ฌ ์ด๊ฒƒ์„ ํ…Œ์ŠคํŠธํ–ˆ์Šต๋‹ˆ๋‹ค. ๋‹ค๋ฅธ ํ”„๋กœํ•„ ์œ ํ˜•์—์„œ๋„ ์ž‘๋™ํ•˜๋Š”์ง€ ๋ชจ๋ฅด๊ฒ ์Šต๋‹ˆ๋‹ค.

Capture

๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ ๋ฒ„ํŠผ์„ ํด๋ฆญ ํ•œ ํด๋”์—์„œ Windows ํ„ฐ๋ฏธ๋„์„ ์—ฝ๋‹ˆ ๋‹ค.

Capture

์ตœ์†Œํ•œ HKCU๋กœ ๋ณ€๊ฒฝํ•˜์—ฌ ์ž์‹ ์˜ ์‚ฌ์šฉ์ž ๊ณ„์ • ๋งŒ ๋ณ€๊ฒฝํ•˜์‹ญ์‹œ์˜ค.

์ด ์†”๋ฃจ์…˜์„ ์ƒ๊ฐํ•ด ๋ƒˆ์Šต๋‹ˆ๋‹ค.
https://github.com/yangshuairocks/Open_in_Windows_Terminal

@VideoPlayerCode ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค ๋งŽ์€ ์‚ฌ๋žŒ์ด Windows ํ„ฐ๋ฏธ๋„์— ๋Œ€ํ•œ ๋‚ด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ–ˆ์Šต๋‹ˆ๋‹ค.

@yangshuairocks Mine์€ ํ•œ ๋ฒˆ์ด

"Windows ํ„ฐ๋ฏธ๋„์—์„œ ์ƒˆ ํƒญ ์œผ๋กœ ์—ด๊ธฐ"๋ฅผ ์›ํ•ฉ๋‹ˆ๋‹ค.
๋‚ด ๋ฐ์Šคํฌํ†ฑ์ด ๋งŽ์€ ํ„ฐ๋ฏธ๋„ ์ฐฝ์œผ๋กœ ์—‰๋ง์ด๋˜๋Š” ๊ฒƒ์„ ์›ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

์ถ”์‹ 
"startingDirectory": "." ๋Š” ์‹œ์ž‘ ๋ฉ”๋‰ด ๋˜๋Š” ์ž‘์—… ํ‘œ์‹œ ์ค„์—์„œ ์—ด๋ฆฐ ํ„ฐ๋ฏธ๋„์˜ $PWD ๋ฅผ C:\Windows\System32 ํ•ฉ๋‹ˆ๋‹ค.

์—ฌ๊ธฐ์— ์ œ๊ณต๋œ ๋ชจ๋“  ์˜๊ฒฌ์˜ ๊ฐ„๋‹จํ•œ ์†”๋ฃจ์…˜ : https://github.com/plexcellmedia/open-microsoft-terminal-in-current-directory

์‹ค์ œ๋กœ ์ „์ฒด ๊ฒฝ๋กœ๋ฅผ ์ž‘์„ฑํ•  ํ•„์š”๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค. ํ„ฐ๋ฏธ๋„์€ PATH ๋ณ€์ˆ˜์— ์žˆ์Šต๋‹ˆ๋‹ค. ๋”ฐ๋ผ์„œ ์–ด๋””์—์„œ๋‚˜ wt ๋ช…๋ น์„ ํ˜ธ์ถœํ•˜์‹ญ์‹œ์˜ค.
๋˜๋Š” UWP ์•ฑ ์ž์ฒด๋ฅผ shell:AppsFolder\Microsoft.WindowsTerminal_8wekyb3d8bbwe!App ํ˜ธ์ถœ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

v0.9.433.0 ๋ฆด๋ฆฌ์Šค ์ดํ›„ ์ด์ œ ๋ช…๋ น ์ค„ ๋งค๊ฐœ ๋ณ€์ˆ˜๋ฅผ ์ „๋‹ฌํ•  ์ˆ˜ ์žˆ์œผ๋ฏ€๋กœ ๋‹ค์Œ์ด ์—ฌ๋Ÿฌ ํ”„๋กœํ•„ ์ง€์›๊ณผ ํ•จ๊ป˜ ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

wt.reg :

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\wt (Command)]
@="Open Terminal (Command)"
[HKEY_CLASSES_ROOT\Directory\shell\wt (Command)\command]
@="C:\\Users\\Sean\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe new-tab -d \"%1\" -p Command"

[HKEY_CLASSES_ROOT\Directory\shell\wt (PowerShell)]
@="Open Terminal (PowerShell)"
[HKEY_CLASSES_ROOT\Directory\shell\wt (PowerShell)\command]
@="C:\\Users\\Sean\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe new-tab -d \"%1\" -p PowerShell"

[HKEY_CLASSES_ROOT\Directory\shell\wt (Git Bash)]
@="Open Terminal (Git Bash)"
[HKEY_CLASSES_ROOT\Directory\shell\wt (Git Bash)\command]
@="C:\\Users\\Sean\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe new-tab -d \"%1\" -p \"Git Bash\""

[HKEY_CLASSES_ROOT\Directory\shell\wt (Ubuntu Bash)]
@="Open Terminal (Ubuntu Bash)"
[HKEY_CLASSES_ROOT\Directory\shell\wt (Ubuntu Bash)\command]
@="C:\\Users\\Sean\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe new-tab -d \"%1\" -p \"Ubuntu Bash\""

[HKEY_CLASSES_ROOT\Directory\shell\wt (Ubuntu Zsh)]
@="Open Terminal (Ubuntu Zsh)"
[HKEY_CLASSES_ROOT\Directory\shell\wt (Ubuntu Zsh)\command]
@="C:\\Users\\Sean\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe new-tab -d \"%1\" -p \"Ubuntu Zsh\""

profiles.json :

{
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "defaultProfile": "{e5beb15e-da5c-4df7-815c-b0b0a865ef3f}",
    "initialRows": 50,
    "tabWidthMode": "titleLength",

    "profiles": {
        "defaults": {
            "cursorShape": "filledBox",
            "experimental.retroTerminalEffect": false,
            "fontFace": "Fira Code",
            "fontSize": 10,
            "padding": "2, 2, 2, 2",
            "suppressApplicationTitle": true
        },
        "list": [
            {
                "backgroundImage": "ms-appdata:///local/ubuntu.png",
                "backgroundImageAlignment": "bottomRight",
                "backgroundImageOpacity": 0.25,
                "backgroundImageStretchMode": "none",
                "commandline": "wsl.exe -d Ubuntu-18.04 --exec zsh --login",
                "colorScheme": "Solarized Dark",
                "guid": "{e5beb15e-da5c-4df7-815c-b0b0a865ef3f}",
                "icon": "ms-appdata:///local/ubuntu.png",
                "name": "Ubuntu Zsh",
                "startingDirectory": "//wsl$/Ubuntu-18.04/home/sean",
                "tabTitle": "Zsh"
            },
            {
                "backgroundImage": "ms-appdata:///local/ubuntu.png",
                "backgroundImageAlignment": "bottomRight",
                "backgroundImageOpacity": 0.25,
                "backgroundImageStretchMode": "none",
                "commandline": "wsl.exe -d Ubuntu-18.04 --exec bash --login",
                "colorScheme": "Solarized Dark",
                "guid": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}",
                "icon": "ms-appdata:///local/ubuntu.png",
                "name": "Ubuntu Bash",
                "source": "Windows.Terminal.Wsl",
                "startingDirectory": "//wsl$/Ubuntu-18.04/home/sean",
                "tabTitle": "Bash"
            },
            {
                "backgroundImage": "ms-appdata:///local/git-for-windows.png",
                "backgroundImageAlignment": "bottomRight",
                "backgroundImageOpacity": 0.25,
                "backgroundImageStretchMode": "none",
                "commandline": "C:\\Program Files\\Git\\bin\\bash.exe --login",
                "colorScheme": "Solarized Dark",
                "guid": "{78ccd05e-83d4-46c6-9a80-8865ff8ff720}",
                "icon" : "C:\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico",
                "name": "Git Bash",
                "startingDirectory": "%USERPROFILE%",
                "tabTitle": "Bash"
            },
            {
                "backgroundImage": "ms-appdata:///local/powershell.png",
                "backgroundImageAlignment": "bottomRight",
                "backgroundImageOpacity": 0.25,
                "backgroundImageStretchMode": "none",
                "commandline": "powershell.exe",
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "name": "PowerShell",
                "tabTitle": "PS"
            },
            {
                "commandline": "cmd.exe",
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "name": "Command",
                "tabTitle": "Cmd"
            },
            {
                "acrylicOpacity": 0.9,
                "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
                "name": "Azure Shell",
                "source": "Windows.Terminal.Azure",
                "tabTitle": "Bash",
                "useAcrylic": true
            },
            {
                "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
                "hidden": false,
                "name": "PowerShell Core",
                "source": "Windows.Terminal.PowershellCore"
            }
        ]
    },

    "schemes": [],

    "keybindings": []
}

@DHowett ํ•˜๋‚˜์˜ ๋ฌธ์ œ ๋งŒ ๋‚จ์•˜์Šต๋‹ˆ๋‹ค. ๊ธฐ์กด wt ์ธ์Šคํ„ด์Šค๋ฅผ ์žฌ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ณ  ์ƒˆ ํƒญ์„ ์—ด์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

@gitfool ๊ณผ ๊ทธ ์‚ฌ๋žŒ์€ # 4472์— ์˜ํ•ด ์ถ”์ ๋ฉ๋‹ˆ๋‹ค. : smile :

๋‹น์‹ ์€ ์‚ฌ์šฉํ•˜์—ฌ ๋” ๊ฐ•๋ ฅํ•œ _slightly_ ํ•  ์ˆ˜ %1\. ๋Œ€์‹ ์— ๋‹จ์ง€ %1 - ๋‹น์‹ ์ด ๋“œ๋ผ์ด๋ธŒ์˜ ๋ฃจํŠธ์— ๊ทธ๊ฒƒ์„ ์—ด๋ฉด ๋ฐ”๋กœ ์ง€๊ธˆ, ๋‹น์‹ ์ด ๊ธฐ๋Œ€ํ•˜๊ณ  ๋ฌด์—‡์„ํ•˜์ง€ ์•Š์„ ๊ฒƒ์ด๋‹ค . ๊ทธ๊ฒŒ # 4571

์™œ ๊ทธ๋Ÿฐ์ง€ ๋ชจ๋ฅด๊ฒ ์ง€๋งŒ @gitfool reg๊ฐ€ ๋‚˜๋ฅผ ์œ„ํ•ดํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด %V ํ†ต๊ณผํ•˜๋ฉด ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

C:\Users\islevin\AppData\Local\Microsoft\WindowsApps\wt -p "cmd" -d "%V"

ํ›Œ๋ฅญํ•œ ์ง์—…๋“ค, ์ด๊ฒƒ์€ ๋‚˜์—๊ฒŒ ๊ฑฐ์˜ ์™„๋ฒฝํ•ฉ๋‹ˆ๋‹ค :)

์ƒํ™ฉ์— ๋งž๋Š” ๋ฉ”๋‰ด ํ•ญ๋ชฉ์ด ํ›Œ๋ฅญํ•˜๊ณ  ์˜ˆ์ƒ ํด๋”๊ฐ€ ์—ด๋ฆฝ๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ Windows ํ„ฐ๋ฏธ๋„์„ ์ง์ ‘ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค (์˜ˆ : ์‹œ์ž‘ ๋ฉ”๋‰ด์—์„œ), ์‹œ์ž‘ ๋””๋ ‰ํ† ๋ฆฌ๋Š” Windows ํ™ˆ ํด๋”์ž…๋‹ˆ๋‹ค.

์ƒํ™ฉ์— ๋งž๋Š” ๋ฉ”๋‰ด ํ•ญ๋ชฉ์„ ์ค‘๋‹จํ•˜์ง€ ์•Š๊ณ  ๋Œ€์‹ ์ด ๊ธฐ๋ณธ๊ฐ’์„ ๋‚ด WSL ํ™ˆ ํด๋”๋กœ ๋งŒ๋“ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

@rfgamaral ์œ„์˜ profile.json ์ฐธ์กฐ. ํ”„๋กœํ•„์— startingDirectory ๊ธฐ๋ณธ๊ฐ’์ด ์ฃผ์–ด์ง€๋ฉด ํƒ์ƒ‰๊ธฐ ์ƒํ™ฉ์— ๋งž๋Š” ๋ฉ”๋‰ด๊ฐ€์ด๋ฅผ ์žฌ์ •์˜ํ•˜๊ณ , ๊ทธ๋ ‡์ง€ ์•Š์œผ๋ฉด ์ง€์ •๋œ๋Œ€๋กœ ๊ธฐ๋ณธ๊ฐ’์ด๋ฉ๋‹ˆ๋‹ค. ๋‚ด Linux ๋ฐฐํฌํŒ๊ณผ ์‚ฌ์šฉ์ž ์ด๋ฆ„์„ ๊ท€ํ•˜์˜ ๊ฒƒ์œผ๋กœ ๋ฐ”๊พธ๋ฉด๋ฉ๋‹ˆ๋‹ค.

@gitfool ์ด๊ฒƒ์€ ๋‚ด๊ฐ€ ๊ฐ€์ง„ ๊ฒƒ์ด์ง€๋งŒ ๋‚˜๋ฅผ ์œ„ํ•ด ์ž‘๋™ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

{
  "guid": "{58ad8b0c-3ef8-5f4d-bc6f-13e4c00f2530}",
  "name": "Debian (WSL)",
  "commandline": "wsl.exe -d Debian --exec zsh --login",
  "startingDirectory": "//wsl$/Debian/home/ricardo",
  "acrylicOpacity": 1.0,
  "colorScheme": "Flat UI (tweaked)",
  "fontSize": 10,
  "hidden": false,
  "padding": "3, 2",
  "useAcrylic": true
}

๋‚˜๋Š” ์ด๋ ‡๊ฒŒ ์‹œ๋„ํ–ˆ๋‹ค https://github.com/shanselman/WindowsTerminalHere/blob/master/WindowsTerminalHere.inf

@rfgamaral ๊ตฌ์„ฑ์— ๋ฌธ์ œ๊ฐ€์žˆ๋Š” ๊ฒƒ์„ ๋ณผ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. WSL ํ™ˆ ๋””๋ ‰ํ„ฐ๋ฆฌ๊ฐ€ ์žˆ์Šต๋‹ˆ๊นŒ, ์•„๋‹ˆ๋ฉด ํ„ฐ๋ฏธ๋„์„ ์ง์ ‘ ์‹œ์ž‘ํ•  ๋•Œ ๋‹ค๋ฅธ ํ”„๋กœํ•„์„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๊นŒ?

์˜ˆ :

image

์•„๋‹ˆ์š”,์ด WSL ํ”„๋กœํ•„ ๋งŒ ์žˆ์Šต๋‹ˆ๋‹ค.

@rfgamaral ๋ฆฌ๋ˆ…์Šค ํŒŒ์ผ ์‹œ์Šคํ…œ์€ ๊ทธ๋ž˜์„œ ๋‹น์‹ ์˜ ํ”„๋กœํ•„, ๋Œ€์†Œ ๋ฌธ์ž๋ฅผ ๊ตฌ๋ณ„ startingDirectory ํ•ด์•ผ๋Š” //wsl$/Debian/home/Ricardo .

@rfgamaral ๋ฆฌ๋ˆ…์Šค ํŒŒ์ผ ์‹œ์Šคํ…œ์€ ๊ทธ๋ž˜์„œ ๋‹น์‹ ์˜ ํ”„๋กœํ•„, ๋Œ€์†Œ ๋ฌธ์ž๋ฅผ ๊ตฌ๋ณ„ startingDirectory ํ•ด์•ผ๋Š” //wsl$/Debian/home/Ricardo .

์ด ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ •๋ง ๊ณ ๋ง™์Šต๋‹ˆ๋‹ค :)

์ด ๋ฌธ์ œ์˜ ๋ฒ”์œ„๋ฅผ ๋ฒ—์–ด๋‚œ ๊ฒƒ์ผ ์ˆ˜๋„ ์žˆ๊ณ  ์•„๋‹ ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค. ์–ด์จŒ๋“  ๋ฌผ์–ด ๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค ... @gitfool์ด ์œ„์—์„œ ์„ค๋ช…ํ•œ ์„ค์ •์„ ๊ฐ€์ •ํ•˜๋ฉด์ด Windows ํด๋”๊ฐ€ C:\Users\Ricardo\Workspace ์ด๊ณ  ์‹ฌ๋ณผ๋ฆญ ๋งํฌ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ~/ Workspace -> /c/Users/AmaralR/Workspace/ ์™€ ๊ฐ™์€ WSL ๋‚ด๋ถ€.

๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜๋ฉด ์–ด๋–ป๊ฒŒ ๋  ๊ฒƒ ์‹œ์›ํ•œ Workspace ๋‚ด๋ถ€ ํƒ์ƒ‰๊ธฐ๊ฐ€ ์—ด๋ ค ํด๋” ~/Workspace ๋Œ€์‹  /c/Users/AmaralR/Workspace/ ? ์—ฌ๋Ÿฌ๋ถ„์€ ์ด๊ฒƒ์ด ์›๊ฒฉ์œผ๋กœ๋„ ๊ฐ€๋Šฅํ•˜๋‹ค๊ณ  ์ƒ๊ฐํ•˜์‹ญ๋‹ˆ๊นŒ?

๋‚˜์—๊ฒŒ๋Š” ํ•œ ๊ฐ€์ง€ ๋ฌธ์ œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. Rick click ๋ช…๋ น์€ ํด๋”๋ฅผ ๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ ๋ฒ„ํŠผ์œผ๋กœ ํด๋ฆญ ํ•  ๋•Œ๋งŒ ๋‚˜ํƒ€๋‚ฉ๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ํด๋” ๋‚ด์˜ ๋นˆ ๊ณต๊ฐ„์„ ๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ ๋ฒ„ํŠผ์œผ๋กœ ํด๋ฆญํ•˜๋ฉด VS Code ๋ฐ ๊ธฐ๋ณธ WSL ๋ฐฐํฌํŒ (Pengwin)์ด ๋‚˜ํƒ€๋‚˜๋”๋ผ๋„ ํ„ฐ๋ฏธ๋„ ํ•ญ๋ชฉ์ด ๋‚˜ํƒ€๋‚˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค (gif ์ฐธ์กฐ). Terminal, VS Code ๋ฐ Pengwin์„ Extended Shell ๋ชจ๋“œ๋กœ ์„ค์ •ํ–ˆ์Šต๋‹ˆ๋‹ค (Shift๋ฅผ ๋ˆ„๋ฅด๊ณ  ์žˆ์Œ).

GIF

๋‚ด ํ˜„์žฌ ๊ตฌ์„ฑ :
```Windows ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ํŽธ์ง‘๊ธฐ ๋ฒ„์ „ 5.00

[HKEY_CLASSES_ROOT \ Directory \ shellwt]
@ = "์—ฌ๊ธฐ์—์„œ ํ„ฐ๋ฏธ๋„ ์—ด๊ธฐ
"ํ™•์žฅ"= ""
"Icon"= "D : \ OneDrive \ _Apps \ .config \ .icons \ terminal.ico"

[HKEY_CLASSES_ROOT \ Directory \ shellwt ๋ช…๋ น]
@ = "C : \ Users \ steve \ AppData \ Local \ Microsoft \ WindowsApps \ wt.exe new-tab -d \"% 1 \ "-p \"Pengwin \ ""```

@Kalaschnik HKCR \ Directory \ Background \ Shell \ WindowsTerminalHere์—๋„ ํ•˜๋‚˜์˜ ํ•ญ๋ชฉ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

https://github.com/shanselman/WindowsTerminalHere/pull/3/files ์ฐธ์กฐ

์œ„์˜ ๋ชจ๋“  ์ง€ํ˜œ๋ฅผ ์š”์•ฝํ•˜๋ฉด :
https://gist.github.com/Kalaschnik/faea6d77494d2e095ab992a58ba94562

ํ„ฐ๋ฏธ๋„์—์„œ cmd ํƒญ์„ ์‹œ์ž‘ํ•˜๋ ค๊ณ ํ•˜๋ฉด

[`cmd.exe '์‹คํ–‰์‹œ ์˜ค๋ฅ˜ 0x8007010b]

๋‚˜์—๊ฒŒ๋Š” ํ•œ ๊ฐ€์ง€ ๋ฌธ์ œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. Rick click ๋ช…๋ น์€ ํด๋”๋ฅผ ๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ ๋ฒ„ํŠผ์œผ๋กœ ํด๋ฆญ ํ•  ๋•Œ๋งŒ ๋‚˜ํƒ€๋‚ฉ๋‹ˆ๋‹ค.

๊ทธ ์›์ธ์ด ๋ฌด์—‡์ธ์ง€ ์ž˜ ๋ชจ๋ฅด๊ฒ ์ง€๋งŒ์ด ์ €์žฅ์†Œ ๋ฅผ ํ™•์ธํ•˜์—ฌ ์ข€ ๋” powershell๊ณผ ๋น„์Šทํ•˜๊ฒŒ ๋งŒ๋“ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Gif demo

์•ˆ๋…•ํ•˜์„ธ์š”,
์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฐ„๋‹จํ•œ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ๊ตฌํ˜„ํ•ฉ๋‹ˆ๋‹ค.
Windows ํ„ฐ๋ฏธ๋„ ๋ฒ„์ „ 0.9.433.0์—์„œ ๋‚˜๋ฅผ ์œ„ํ•ด ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

@ nt4f04uNd ๋ฐ ๋‹ค๋ฅธ ๋ชจ๋“  ์˜๊ฐ์„ ์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

Repo : Windows ํ„ฐ๋ฏธ๋„ ์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด

์•ˆ๋…•ํ•˜์„ธ์š”,
์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฐ„๋‹จํ•œ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ๊ตฌํ˜„ํ•ฉ๋‹ˆ๋‹ค.
Windows ํ„ฐ๋ฏธ๋„ ๋ฒ„์ „ 0.9.433.0์—์„œ ๋‚˜๋ฅผ ์œ„ํ•ด ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

@ nt4f04uNd ๋ฐ ๋‹ค๋ฅธ ๋ชจ๋“  ์˜๊ฐ์„ ์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

Repo : Windows ํ„ฐ๋ฏธ๋„ ์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด

์ •๋ง ๋Œ€๋‹จํ•ด์š” !!! ๊ทธ๋Ÿฌ๋‚˜ ๋ช‡ ๊ฐ€์ง€ ์ฐธ๊ณ  :
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7
์‹คํ–‰ํ•˜๋ ค๋ฉด Set-ExecutionPolicy๋ฅผ Unrestricted๋กœ ์„ค์ •ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

๋˜ํ•œ ์ด๊ฒƒ์€ ๊นจ์ง„ ๊ฒƒ์ฒ˜๋Ÿผ ๋ณด์ž…๋‹ˆ๋‹ค.

Copy-Item : The filename, directory name, or volume label syntax is incorrect.
At D:\Jeff\Documents\Windows-terminal-context-menu\SetupContextMenu.ps1:25 char:1
+ Copy-Item -Path "$PSScriptRoot\icons\*.ico" -Destination $resourcePat ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Copy-Item], IOException
    + FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Commands.CopyItemCommand

this dir needs to be created either prior to or as part of the execution:
$env:LOCALAPPDATA\WindowsTerminalContextIcons\

๋˜ํ•œ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋งํ•ฉ๋‹ˆ๋‹ค.

PS D:\Jeff\Documents\Windows-terminal-context-menu> .\SetupContextMenu.ps1
Add top layer menu (shell) => Registry::HKEY_CLASSES_ROOT\Directory\shell\WindowsTerminal
Add top layer menu (background) => Registry::HKEY_CLASSES_ROOT\Directory\shell\WindowsTerminal
Add new entry Git Bash
Add new entry Command Prompt
Add new entry PowerShell
Add new entry Azure Cloud Shell

๊ทธ๋Ÿฌ๋‚˜ ์‹ค์ œ๋กœ ์ œ๋Œ€๋กœ ์ƒ์„ฑํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค (์ˆจ๊ฒจ์ง„ ํ‚ค๊ฐ€ ์—†๊ธฐ ๋•Œ๋ฌธ์— ์•„์ด์ฝ˜์ด ๋ˆ„๋ฝ๋˜๊ณ  Git Bash๊ฐ€ ๋ˆ„๋ฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค).
image

๊ธ€๋กœ๋ฒŒ ์ •์˜์— ๋‹ค์Œ์„ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.
$gitbashIcoFileName = "git-bash.ico"

๊ทธ๋ฆฌ๊ณ  ์ด๊ฒƒ์€ 101 ํ–‰ ๋’ค์— :

        elseif ($commandLine -like "*Git*bash.exe*") {
            $icoPath = $gitbashIcoFileName
        }

๋‹ค์Œ์—์„œ ์•„์ด์ฝ˜์„๋กœ๋“œํ•˜๋Š” ๊ฒƒ์„ ์ข‹์•„ํ•˜์ง€ ์•Š๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.
% LOCALAPPDATA % \ WindowsTerminalContextIcons \
... ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ํ‚ค์— ๋ฌธ์ œ๊ฐ€์—†๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

๋Œ€์‹ ์ด ์ค„์„ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋ณ€๊ฒฝํ–ˆ์Šต๋‹ˆ๋‹ค.
$resourcePath = "$PSScriptRoot\icons\"

์ œ๊ฑฐ๋จ :
Copy-Item -Path "$PSScriptRoot\icons\*.ico" -Destination $resourcePath

๋ฌธ์ œ๋Š” ํด๋”๊ฐ€ ์—†์œผ๋ฉด ์•„์ด์ฝ˜์ด ๋ณต์‚ฌ๋˜์ง€ ์•Š๊ณ  Copy-Item์ด ํ•ด๋‹น ๋น„ํŠธ๋ฅผ ํ•ด๊ฒฐํ•˜๊ธฐ ์ „์— mkdir $resourcePath ๋งŒ ์ถ”๊ฐ€ํ•˜๋ฉด๋ฉ๋‹ˆ๋‹ค. ๋‚˜๋Š” ๋‹น์‹ ์˜ repo์— ๋Œ€ํ•œ ๋ฌธ์ œ๋ฅผ ๋งŒ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค. ๋˜ํ•œ ์ผ๋ถ€ ์‹œ๋‚˜๋ฆฌ์˜ค์—์„œ ํ”„๋กœํ•„ ๊ตฌ๋ฌธ ๋ถ„์„์— ๋ฌธ์ œ๊ฐ€์žˆ๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ์–ด์จŒ๋“  ๋Œ€๋ณธ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!

์•ˆ๋…•ํ•˜์„ธ์š” @Nomelas

๋‹น์‹ ์˜ ์‘๋‹ต์„ ์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.
์•„์ด์ฝ˜ ๋ˆ„๋ฝ์— ๋Œ€ํ•œ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ–ˆ์Šต๋‹ˆ๋‹ค. ๋‹ค์‹œ ์„ค์น˜ํ•˜๊ณ  ๋‹ค์‹œ ๋กœ๊ทธ์ธํ•˜์‹ญ์‹œ์˜ค.
$ resourcePath๋ฅผ ์Šคํฌ๋ฆฝํŠธ ์œ„์น˜๋กœ ์„ค์ •ํ•˜๋Š” ๊ฒƒ์„ ์„ ํ˜ธํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ์‚ฌ์šฉ์ž๊ฐ€ ์–ด๋–ค ์ด์œ ๋กœ ๋“  ์„ค์น˜ ํ”„๋กœ๊ทธ๋žจ ํด๋”๋ฅผ ์ œ๊ฑฐ ํ•  ์ˆ˜ ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ์•„์ด์ฝ˜์ด ๋‹ค์‹œ ๋ˆ„๋ฝ๋ฉ๋‹ˆ๋‹ค.

๋‘ ๋ฒˆ์งธ๋กœ git bash ํ”„๋กœํ•„์„ ๊ณต์œ  ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ? ๋‚ด WT์— Git-bash๋ฅผ ์„ค์ •ํ•˜์ง€ ์•Š์•˜๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค.
๊ทœ์น™์„ ์„ค์ •ํ•˜๋ ค๋ฉด ํŒจํ„ด์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

์•ˆ๋…•ํ•˜์„ธ์š” @Nomelas

๋‹น์‹ ์˜ ์‘๋‹ต์„ ์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.
์•„์ด์ฝ˜ ๋ˆ„๋ฝ์— ๋Œ€ํ•œ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ–ˆ์Šต๋‹ˆ๋‹ค. ๋‹ค์‹œ ์„ค์น˜ํ•˜๊ณ  ๋‹ค์‹œ ๋กœ๊ทธ์ธํ•˜์‹ญ์‹œ์˜ค.
$ resourcePath๋ฅผ ์Šคํฌ๋ฆฝํŠธ ์œ„์น˜๋กœ ์„ค์ •ํ•˜๋Š” ๊ฒƒ์„ ์„ ํ˜ธํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ์‚ฌ์šฉ์ž๊ฐ€ ์–ด๋–ค ์ด์œ ๋กœ ๋“  ์„ค์น˜ ํ”„๋กœ๊ทธ๋žจ ํด๋”๋ฅผ ์ œ๊ฑฐ ํ•  ์ˆ˜ ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ์•„์ด์ฝ˜์ด ๋‹ค์‹œ ๋ˆ„๋ฝ๋ฉ๋‹ˆ๋‹ค.

๋‘ ๋ฒˆ์งธ๋กœ git bash ํ”„๋กœํ•„์„ ๊ณต์œ  ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ? ๋‚ด WT์— Git-bash๋ฅผ ์„ค์ •ํ•˜์ง€ ์•Š์•˜๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค.
๊ทœ์น™์„ ์„ค์ •ํ•˜๋ ค๋ฉด ํŒจํ„ด์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

๋ชจ๋“  ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๊ณ  PR์„ ์ œ์ถœ ์ค‘์ž…๋‹ˆ๋‹ค.

@Nomelas , ๋ถˆํ–‰ํžˆ๋„ ๊ทธ๊ฒƒ์€ ๋‚˜๋ฅผ ์œ„ํ•ด ์ž‘๋™ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. config.json์„ ํŽธ์ง‘ํ•˜๊ณ  ps ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‹คํ–‰ํ–ˆ์Šต๋‹ˆ๋‹ค. ์•„์ด์ฝ˜ (์…ธ ํด๋” ์—†์Œ)์„ ํด๋ฆญํ•˜๋ฉด ๋‹ค์Œ์„๋ฐ›์Šต๋‹ˆ๋‹ค.
This file does not have a program associated with it for performing this action. Please install an app or, if one is already installed, create an association in the Default Apps Settings page.

๊ทธ๊ฒŒ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ์ฒญํฌ์ž…๋‹ˆ๋‹ค.
image

์—ฌ๋Ÿฌ๋ถ„, ์ œ๊ฐ€์ด ํŒŒํ‹ฐ์— ์กฐ๊ธˆ ๋Šฆ์—ˆ๋‹ค๋Š” ๊ฒƒ์„ ์•Œ๊ณ  ์žˆ์ง€๋งŒ ๊ฒƒ์€ ์–ด๋–ป์Šต๋‹ˆ๊นŒ? ๐Ÿ˜‰

์ƒ์Šน ๋œ ๊ถŒํ•œ์œผ๋กœ PowerShell์„ ์‹คํ–‰ํ•˜๊ณ  ๋‹ค์Œ์„ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

Install-Module OpenHere
Set-OpenHereShortcut -ShortcutType:WindowsTerminal

๐Ÿ‘ ์ด๊ฒƒ์„ ์ข‹์•„ํ•˜๋Š” ์‚ฌ๋žŒ!

@ nt4f04uNd ์•„๋งˆ๋„ ๋ฌธ์„œ๋ฅผ ๋จผ์ € ์ฝ์–ด์•ผ ํ•  ๊ฒƒ Notes

๋‚ด๊ฐ€ ๋†“์ณค์„ ์ˆ˜๋„ ์žˆ์ง€๋งŒ ์„ค์ • ์‹œ์ž‘ ๋””๋ ‰ํ„ฐ๋ฆฌ "." ์‹œ์ž‘ ๋ฉ”๋‰ด์—์„œ ์—ด๋ฉด Windows ํ„ฐ๋ฏธ๋„์˜ ์„ค์น˜ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์—ด๊ณ  ์—ฌ๊ธฐ์—์„œ ์—ด๊ธฐ ์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด๋Š” ํ˜„์žฌ์žˆ๋Š” ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์—ด๋ฆฝ๋‹ˆ๋‹ค. "% USERPROFILE %"์„ ์‚ฌ์šฉํ•˜๋ฉด ๋‚ด ์‚ฌ์šฉ์ž ๋””๋ ‰ํ† ๋ฆฌ์—์„œ๋งŒ ์–‘๋ฐฉํ–ฅ์œผ๋กœ ์—ด๋ฆฝ๋‹ˆ๋‹ค.

์—ฌ๊ธฐ์—์„œ ์—ด ์ˆ˜์žˆ๋Š” ๋ฐฉ๋ฒ•์ด ์žˆ๊ณ  ์‹œ์ž‘ ๋ฉ”๋‰ด์—์„œ ์—ด ๋•Œ ๊ธฐ๋ณธ ๊ฒฝ๋กœ๋กœ "% USERPROFILE %"์ด ์—ฌ์ „ํžˆ ์žˆ์Šต๋‹ˆ๊นŒ? ์—ฌ๊ธฐ์„œ ์—ด๊ธฐ๋Š” "% USERPROFILE %"์—์„œ ์ž‘๋™ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

@eskoONE ๋ฐ ๊ธฐํƒ€, ๊ทธ๋ ‡์Šต๋‹ˆ๋‹ค!
-d ์ธ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ์†”๋ฃจ์…˜์ด ์žˆ์Šต๋‹ˆ๋‹ค. https://github.com/nt4f04und/wt-contextmenu ํ™•์ธ

์—ฌ๋Ÿฌ๋ถ„, ์ œ๊ฐ€์ด ํŒŒํ‹ฐ์— ์กฐ๊ธˆ ๋Šฆ์—ˆ๋‹ค๋Š” ๊ฒƒ์„ ์•Œ๊ณ  ์žˆ์ง€๋งŒ ๊ฒƒ์€ ์–ด๋–ป์Šต๋‹ˆ๊นŒ? ๐Ÿ˜‰

์ƒ์Šน ๋œ ๊ถŒํ•œ์œผ๋กœ PowerShell์„ ์‹คํ–‰ํ•˜๊ณ  ๋‹ค์Œ์„ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

Install-Module OpenHere
Set-OpenHereShortcut -ShortcutType:WindowsTerminal

๐Ÿ‘ ์ด๊ฒƒ์„ ์ข‹์•„ํ•˜๋Š” ์‚ฌ๋žŒ!

ํšจ๊ณผ๊ฐ€์žˆ๋‹ค!! ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!

ํด๋” ์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด์— ๋‹จ์ผ ๋ช…๋ น์„ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฒƒ๋ณด๋‹ค _way_ ๋” ์‰ฝ์Šต๋‹ˆ๋‹ค. ๋‹จ์ˆœํ•œ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ํ‚ค์ผ๋ฟ์ž…๋‹ˆ๋‹ค.

์˜ˆ๋ฅผ ๋“ค์–ด (์•„์ด์ฝ˜ ๋“ฑ์„ ์ถ”๊ฐ€ ํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค)

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\Open Thing Here\command]
@="C:\\thing.exe \"%1\""

"PowerShell Window"์˜ต์…˜๊ณผ ๊ฐ™์ด Shift ํ‚ค๋ฅผ ๋ˆ„๋ฅผ ๋•Œ๋งŒ ํ•ด๋‹น thing.exe๋ฅผ ์—ฌ๋Š” ์˜ต์…˜์„ ์ถ”๊ฐ€ํ•˜๋ ค๋ฉด ์–ด๋–ป๊ฒŒํ•ด์•ผํ•ฉ๋‹ˆ๊นŒ?

์—ฌ๋Ÿฌ๋ถ„, ์ œ๊ฐ€์ด ํŒŒํ‹ฐ์— ์กฐ๊ธˆ ๋Šฆ์—ˆ๋‹ค๋Š” ๊ฒƒ์„ ์•Œ๊ณ  ์žˆ์ง€๋งŒ ๊ฒƒ์€ ์–ด๋–ป์Šต๋‹ˆ๊นŒ? ๐Ÿ˜‰

์ƒ์Šน ๋œ ๊ถŒํ•œ์œผ๋กœ PowerShell์„ ์‹คํ–‰ํ•˜๊ณ  ๋‹ค์Œ์„ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

Install-Module OpenHere
Set-OpenHereShortcut -ShortcutType:WindowsTerminal

๐Ÿ‘ ์ด๊ฒƒ์„ ์ข‹์•„ํ•˜๋Š” ์‚ฌ๋žŒ!

์–ด๋–ป๊ฒŒ ์ œ๊ฑฐ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

์—ฌ๋Ÿฌ๋ถ„, ์ œ๊ฐ€์ด ํŒŒํ‹ฐ์— ์กฐ๊ธˆ ๋Šฆ์—ˆ๋‹ค๋Š” ๊ฒƒ์„ ์•Œ๊ณ  ์žˆ์ง€๋งŒ ๊ฒƒ์€ ์–ด๋–ป์Šต๋‹ˆ๊นŒ? ๐Ÿ˜‰
์ƒ์Šน ๋œ ๊ถŒํ•œ์œผ๋กœ PowerShell์„ ์‹คํ–‰ํ•˜๊ณ  ๋‹ค์Œ์„ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

Install-Module OpenHere
Set-OpenHereShortcut -ShortcutType:WindowsTerminal

๐Ÿ‘ ์ด๊ฒƒ์„ ์ข‹์•„ํ•˜๋Š” ์‚ฌ๋žŒ!

์–ด๋–ป๊ฒŒ ์ œ๊ฑฐ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

๋ฌธ์„œ์—์„œ :
Remove-OpenHereShortcut -ShortcutType:WindowsTerminal

์•ˆ๋…•ํ•˜์„ธ์š”,
์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฐ„๋‹จํ•œ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ๊ตฌํ˜„ํ•ฉ๋‹ˆ๋‹ค.
Windows ํ„ฐ๋ฏธ๋„ ๋ฒ„์ „ 0.9.433.0์—์„œ ๋‚˜๋ฅผ ์œ„ํ•ด ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.
@ nt4f04uNd ๋ฐ ๋‹ค๋ฅธ ๋ชจ๋“  ์˜๊ฐ์„ ์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.
Repo : Windows ํ„ฐ๋ฏธ๋„ ์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด

์ •๋ง ๋Œ€๋‹จํ•ด์š” !!! ๊ทธ๋Ÿฌ๋‚˜ ๋ช‡ ๊ฐ€์ง€ ์ฐธ๊ณ  :
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7
์‹คํ–‰ํ•˜๋ ค๋ฉด Set-ExecutionPolicy๋ฅผ Unrestricted๋กœ ์„ค์ •ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

๋˜ํ•œ ์ด๊ฒƒ์€ ๊นจ์ง„ ๊ฒƒ์ฒ˜๋Ÿผ ๋ณด์ž…๋‹ˆ๋‹ค.

Copy-Item : The filename, directory name, or volume label syntax is incorrect.
At D:\Jeff\Documents\Windows-terminal-context-menu\SetupContextMenu.ps1:25 char:1
+ Copy-Item -Path "$PSScriptRoot\icons\*.ico" -Destination $resourcePat ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Copy-Item], IOException
    + FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Commands.CopyItemCommand

this dir needs to be created either prior to or as part of the execution:
$env:LOCALAPPDATA\WindowsTerminalContextIcons\

๋˜ํ•œ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋งํ•ฉ๋‹ˆ๋‹ค.

PS D:\Jeff\Documents\Windows-terminal-context-menu> .\SetupContextMenu.ps1
Add top layer menu (shell) => Registry::HKEY_CLASSES_ROOT\Directory\shell\WindowsTerminal
Add top layer menu (background) => Registry::HKEY_CLASSES_ROOT\Directory\shell\WindowsTerminal
Add new entry Git Bash
Add new entry Command Prompt
Add new entry PowerShell
Add new entry Azure Cloud Shell

๊ทธ๋Ÿฌ๋‚˜ ์‹ค์ œ๋กœ ์ œ๋Œ€๋กœ ์ƒ์„ฑํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค (์ˆจ๊ฒจ์ง„ ํ‚ค๊ฐ€ ์—†๊ธฐ ๋•Œ๋ฌธ์— ์•„์ด์ฝ˜์ด ๋ˆ„๋ฝ๋˜๊ณ  Git Bash๊ฐ€ ๋ˆ„๋ฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค).
image

์ด ์Šคํฌ๋ฆฝํŠธ์—๋Š” ์ด์ „ ๋ฒ„์ „์˜ Windows ํ„ฐ๋ฏธ๋„ ์šฉ์œผ๋กœ ๋งŒ๋“ค์–ด ์กŒ๊ธฐ ๋•Œ๋ฌธ์— ๋ช‡ ๊ฐ€์ง€ ๋ฒ„๊ทธ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋Ÿฌํ•œ ์˜ค๋ฅ˜๋ฅผ ์ˆ˜์ •ํ•˜๊ธฐ ์œ„ํ•ด ํฌํฌ๋ฅผ ๋งŒ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค.

https://github.com/KiritoDv/Windows-terminal-context-menu

image

์•ˆ๋…•ํ•˜์„ธ์š” @KiritoDv
Windows ํ„ฐ๋ฏธ๋„ ๋ฒ„์ „์„ ํ™•์ธํ•ด ์ฃผ์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ?
์ตœ์‹  ๋ฆด๋ฆฌ์Šค ๋ฒ„์ „ v0.9.433.0 ์„ ์‚ฌ์šฉํ•˜๊ณ  ์„ฑ๊ณต์ ์œผ๋กœ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.

๊ณ ๋งˆ์›Œ ~

์ตœ์‹  ๋ฒ„์ „์„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์ง€๋งŒ ํ”„๋กœํ•„ ํŒŒ์ผ์„ ์—…๋ฐ์ดํŠธํ•˜๋ฉด ์ด์ „ ํ”„๋กœํ•„ ๋ฒ„์ „๊ณผ ๋™์ผํ•ฉ๋‹ˆ๋‹ค. ์ฃ„์†กํ•ฉ๋‹ˆ๋‹ค. ์ตœ์†Œํ•œ ๋™์ผํ•œ ์˜ค๋ฅ˜๊ฐ€์žˆ๋Š” ์‚ฌ๋žŒ์—๊ฒŒ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์ด ์ ์šฉ๋ฉ๋‹ˆ๋‹ค.

๋Œ€๋ณธ์„ ๋งŒ๋“  Kuddos Kirito, ์ •๋ง ์ข‹์Šต๋‹ˆ๋‹ค. ์•ž์œผ๋กœ WT์—์„œ ์ง€์›ํ•  ๊ฐ€๋Šฅ์„ฑ์ด ์žˆ์Šต๋‹ˆ๊นŒ?

@RonaldOlsthoorn ํ™•์‹คํžˆ

๋ˆ„๊ตฐ๊ฐ€๊ฐ€ ํŒจํ‚ค์ง€ ๋œ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์—์„œ ์ด๋Ÿฌํ•œ ์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด ํ•ญ๋ชฉ์„ ์„ค์น˜ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ์•„ ๋‚ด๊ณ  ํ•ญ๋ชฉ์„ ๋™์ ์œผ๋กœ ์—…๋ฐ์ดํŠธ ํ•  ์ˆ˜ ์žˆ๋‹ค๋ฉด (ํ”„๋กœํ•„ ๋ชฉ๋ก์„ ๋ฐ˜์˜ํ•˜๊ธฐ ์œ„ํ•ด) PR ๊ฒ€ํ† ์— ํ™•์‹คํžˆ ๊ด€์‹ฌ์ด์žˆ์„ ๊ฒƒ์ž…๋‹ˆ๋‹ค. ๐Ÿ˜‰ ๊ทธ๋•Œ๊นŒ์ง€๋Š” ๋ฐฑ ๋กœ๊ทธ์—๋งŒ ์žˆ์Šต๋‹ˆ๋‹ค.

์•„๋งˆ๋„ Pengwin์„ ์œ„ํ•ด ๊ทธ๊ฒƒ์„ ํ•œ ์‚ฌ๋žŒ๋“ค์€ ํ„ฐ๋ฏธ๋„์—์„œ๋„ ๊ทธ๊ฒƒ์„ ํ•  ์ˆ˜์žˆ์„ ๊ฒƒ์ž…๋‹ˆ๋‹ค.

์•ˆ๋…•ํ•˜์„ธ์š”,
์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฐ„๋‹จํ•œ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ๊ตฌํ˜„ํ•ฉ๋‹ˆ๋‹ค.
Windows ํ„ฐ๋ฏธ๋„ ๋ฒ„์ „ 0.9.433.0์—์„œ ๋‚˜๋ฅผ ์œ„ํ•ด ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.
@ nt4f04uNd ๋ฐ ๋‹ค๋ฅธ ๋ชจ๋“  ์˜๊ฐ์„ ์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.
Repo : Windows ํ„ฐ๋ฏธ๋„ ์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด

์ •๋ง ๋Œ€๋‹จํ•ด์š” !!! ๊ทธ๋Ÿฌ๋‚˜ ๋ช‡ ๊ฐ€์ง€ ์ฐธ๊ณ  :
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7
์‹คํ–‰ํ•˜๋ ค๋ฉด Set-ExecutionPolicy๋ฅผ Unrestricted๋กœ ์„ค์ •ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.
๋˜ํ•œ ์ด๊ฒƒ์€ ๊นจ์ง„ ๊ฒƒ์ฒ˜๋Ÿผ ๋ณด์ž…๋‹ˆ๋‹ค.

Copy-Item : The filename, directory name, or volume label syntax is incorrect.
At D:\Jeff\Documents\Windows-terminal-context-menu\SetupContextMenu.ps1:25 char:1
+ Copy-Item -Path "$PSScriptRoot\icons\*.ico" -Destination $resourcePat ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Copy-Item], IOException
    + FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Commands.CopyItemCommand

this dir needs to be created either prior to or as part of the execution:
$env:LOCALAPPDATA\WindowsTerminalContextIcons\

๋˜ํ•œ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋งํ•ฉ๋‹ˆ๋‹ค.

PS D:\Jeff\Documents\Windows-terminal-context-menu> .\SetupContextMenu.ps1
Add top layer menu (shell) => Registry::HKEY_CLASSES_ROOT\Directory\shell\WindowsTerminal
Add top layer menu (background) => Registry::HKEY_CLASSES_ROOT\Directory\shell\WindowsTerminal
Add new entry Git Bash
Add new entry Command Prompt
Add new entry PowerShell
Add new entry Azure Cloud Shell

๊ทธ๋Ÿฌ๋‚˜ ์‹ค์ œ๋กœ ์ œ๋Œ€๋กœ ์ƒ์„ฑํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค (์ˆจ๊ฒจ์ง„ ํ‚ค๊ฐ€ ์—†๊ธฐ ๋•Œ๋ฌธ์— ์•„์ด์ฝ˜์ด ๋ˆ„๋ฝ๋˜๊ณ  Git Bash๊ฐ€ ๋ˆ„๋ฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค).
image

์ด ์Šคํฌ๋ฆฝํŠธ์—๋Š” ์ด์ „ ๋ฒ„์ „์˜ Windows ํ„ฐ๋ฏธ๋„ ์šฉ์œผ๋กœ ๋งŒ๋“ค์–ด ์กŒ๊ธฐ ๋•Œ๋ฌธ์— ๋ช‡ ๊ฐ€์ง€ ๋ฒ„๊ทธ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋Ÿฌํ•œ ์˜ค๋ฅ˜๋ฅผ ์ˆ˜์ •ํ•˜๊ธฐ ์œ„ํ•ด ํฌํฌ๋ฅผ ๋งŒ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค.

https://github.com/KiritoDv/Windows-terminal-context-menu

image

๋Œ€๋ณธ์„ ๋งŒ๋“  ๊ฒƒ์— ๋Œ€ํ•œ ๋ช…์„ฑ์€ ๋งค๋ ฅ์ฒ˜๋Ÿผ ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

๊ตฌํ˜„ ์ฐธ๊ณ  ์‚ฌํ•ญ : PowerToys ์•ฑ ๋งค๋‹ˆํŽ˜์ŠคํŠธ ๋Š” ํŒŒ์ผ ๋ฐ ํด๋”์— ๋Œ€ํ•œ ํŒŒ์ผ ํƒ์ƒ‰๊ธฐ ์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด๋ฅผ ์„ ์–ธํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค. ์ด๊ฒƒ์ด ์ˆ˜๋ฐ˜๋˜๋Š” COM ์„œ๋ฒ„ ๋“ฑ๋ก์ด ํ•„์š”ํ•œ์ง€ ํ™•์‹คํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค ...

# 2189์™€์˜ ๊ฒน์นจ์€ ๋ณด์™„ ์ ์ด ๋ผ๊ธฐ๋ณด๋‹ค๋Š” ๊ฑฐ์˜ ํ‰ํ–‰ํ•˜๊ฒŒ ๋ณด์ž…๋‹ˆ๋‹ค.

<Extensions>
        ...
        <com:Extension Category="windows.comServer">
          <com:ComServer>
            <com:ExeServer Executable="modules\PowerRenameUWPUI.exe" DisplayName="PowerRenameUWPUI">
              <com:Class Id="0440049F-D1DC-4E46-B27B-98393D79486B"/>
            </com:ExeServer>
          </com:ComServer>
        </com:Extension>
        <desktop4:Extension Category="windows.fileExplorerContextMenus">
          <desktop4:FileExplorerContextMenus>
            <desktop4:ItemType Type="*">
              <desktop4:Verb Id="FilePowerRename" Clsid="0440049F-D1DC-4E46-B27B-98393D79486B" />
            </desktop4:ItemType>
            <desktop5:ItemType Type="Directory">
              <desktop5:Verb Id="DirectoryPowerRename" Clsid="0440049F-D1DC-4E46-B27B-98393D79486B" />
            </desktop5:ItemType>
          </desktop4:FileExplorerContextMenus>
        </desktop4:Extension>

์†Œ์Šค ์ฝ”๋“œ๋ฅผ ์ถ”์ ํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.
profiles.json ์ˆ˜์ • ๋œ์˜ ์ฝœ๋ฐฑ ํ•จ์ˆ˜๊ฐ€ ๋ญ”์ง€ ์ž˜ ๋ชจ๋ฅด๊ฒ ์Šต๋‹ˆ๋‹ค ๐Ÿค”.

Mine์€ ์‚ฌ๋žŒ๋“ค์˜ ๋Œ“๊ธ€์„ ์ฝ๋Š” ๋ฐ ๋งŽ์€ ์‹œ๊ฐ„์„ ๋ณด๋‚ธ ํ›„ ์ผํ–ˆ์Šต๋‹ˆ๋‹ค .๐Ÿ˜ƒ

์˜ค๋ฅธ์ชฝ ํด๋ฆญ ์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด์— "์—ฌ๊ธฐ์— Windows ํ„ฐ๋ฏธ๋„"์„ ์ถ”๊ฐ€ํ•˜๋Š” ๋‹จ๊ณ„ :
1) Microsoft Store์—์„œ Windows ํ„ฐ๋ฏธ๋„ ๋‹ค์šด๋กœ๋“œ

2) https://github.com/yanglr/WindowsDevTools/blob/master/awosomeTerminal/icons/wt_32.ico์—์„œ
ํŒŒ์ผ ์ด๋ฆ„์ด wt_32.ico ์ธ ๋‹ค์šด๋กœ๋“œ ์•„์ด์ฝ˜

3) CMD๋ฅผ ์—ด๊ณ  ๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•˜์‹ญ์‹œ์˜ค mkdir "%USERPROFILE%\AppData\Local\terminal"

4) 2 ๋‹จ๊ณ„์—์„œ ๋‹ค์šด๋กœ๋“œ ํ•œ Windows ํ„ฐ๋ฏธ๋„ ์•„์ด์ฝ˜์„ C : \ Users [์‚ฌ์šฉ์ž ์ด๋ฆ„] AppData \ Local \ terminal ํด๋”์— ๋ณต์‚ฌํ•ฉ๋‹ˆ๋‹ค.
(๋‚ด๊ฐ€ ์•„์ด์ฝ˜์„ ๋ณต์‚ฌํ•˜๋Š” ์˜ˆ : C : \ Users \ DellAppData \ Local \ terminal)

5) notpad๋ฅผ ์—ด๊ณ  ์•„๋ž˜ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•˜์‹ญ์‹œ์˜ค.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Windows terminal here"
"Icon"=C:\\Users\\[your-user-name]\\AppData\\Local\\terminal\\wt_32.ico

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="C:\\Users\\[your-user-name]\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe"

6) ์ฐธ๊ณ  :
[your-user-name]์— ์‚ฌ์šฉ์ž ์ด๋ฆ„์„ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.
์˜ˆ๋ฅผ ๋“ค์–ด ๋‚ด ์‚ฌ์šฉ์ž ์ด๋ฆ„์€ Dell์ž…๋‹ˆ๋‹ค. ๋‚ด ๊ฒฝ๋กœ๋Š”

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Windows terminal here"
"Icon"=C:\\Users\\DELL\\AppData\\Local\\terminal\\wt_32.ico

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="C:\\Users\\DELL\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe"

๋ฐ”ํƒ• ํ™”๋ฉด (๋˜๋Š” PC์˜ ๋ชจ๋“  ์œ„์น˜)์— wt.reg๋กœ ํŒŒ์ผ์„ ์ €์žฅํ•˜๊ณ  ์—ฝ๋‹ˆ ๋‹ค.
(๋ชจ๋‘ ํ™•์ธ์„ ๋ˆ„๋ฆ„)
7) ์˜ค๋ฅธ์ชฝ ํด๋ฆญ์œผ๋กœ ํ…Œ์ŠคํŠธ => ์—ฌ๊ธฐ์—์„œ Windows ํ„ฐ๋ฏธ๋„ ์„ ํƒ
[์œˆ๋„์šฐ ๋‹จ๋ง๊ธฐ (๋ฏธ๋ฆฌ๋ณด๊ธฐ)๊ฐ€ ์—ด๋ฆฝ๋‹ˆ๋‹ค] ๐Ÿ‘

ํŒŒ์ผ ํƒ์ƒ‰๊ธฐ์—์„œ ๋“œ๋ผ์ด๋ธŒ์— ์ƒํ™ฉ์— ๋งž๋Š” ๋ฉ”๋‰ด๋ฅผ ์ถ”๊ฐ€ํ•˜๋ฉด ์—ฌ์ „ํžˆ ์ž‘๋™ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. 1 ์ดˆ ๋™์•ˆ WT๋ฅผ ์—ฐ ๋‹ค์Œ ๋‹ซ์Šต๋‹ˆ๋‹ค. ์ด ํŠน์ • ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•œ ๋‹จ์„œ๊ฐ€ ์žˆ์Šต๋‹ˆ๊นŒ?

@ 4k3or3et ๋‚˜๋Š” ๋‹น์‹ ์ด ๋ฌด์—‡์„ ์–ธ๊ธ‰ํ•˜๊ณ  ์žˆ๋Š”์ง€ ํ™•์‹คํ•˜์ง€ ์•Š์ง€๋งŒ @ atif-dev ๋ฐ @ zadjii-msft์™€ ๊ฐ™์€ ๋‹ค๋ฅธ ์‚ฌ๋žŒ๋“ค์˜ ์ž‘์—…์€ ๋กค๋ฐฑ ๋ฐ ์‚ฌ์šฉ์ž ์ง€์ •์„ ํฌํ•จํ•˜์—ฌ์ด๋ฅผ ์™„์ „ํžˆ ๋‹ค๋ฃจ๋Š” Windows PowerShell ๋ชจ๋“ˆ ์ด ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ์ƒ๋‹นํžˆ ์ค‘๋ณต๋ฉ๋‹ˆ๋‹ค.

@ 4k3or3et ๋‚˜๋Š” ๋‹น์‹ ์ด ๋ฌด์—‡์„ ์–ธ๊ธ‰ํ•˜๊ณ  ์žˆ๋Š”์ง€ ํ™•์‹คํ•˜์ง€ ์•Š์ง€๋งŒ @ atif-dev ๋ฐ @ zadjii-msft์™€ ๊ฐ™์€ ๋‹ค๋ฅธ ์‚ฌ๋žŒ๋“ค์˜ ์ž‘์—…์€ ๋กค๋ฐฑ ๋ฐ ์‚ฌ์šฉ์ž ์ง€์ •์„ ํฌํ•จํ•˜์—ฌ์ด๋ฅผ ์™„์ „ํžˆ ๋‹ค๋ฃจ๋Š” Windows PowerShell ๋ชจ๋“ˆ ์ด ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ์ƒ๋‹นํžˆ ์ค‘๋ณต๋ฉ๋‹ˆ๋‹ค.

๋งˆ์ฐฌ๊ฐ€์ง€๋กœ HKEY_CLASSES_ROOT\Direcroty\shell ์— ์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด ํ•ญ๋ชฉ์„ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฒƒ๊ณผ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ HKEY_CLASSES_ROOT\Drive\shell ์—๋„ ์ถ”๊ฐ€ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ํŒŒ์ผ ํƒ์ƒ‰๊ธฐ์—์„œ ๋“œ๋ผ์ด๋ธŒ๋ฅผ ๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ ๋ฒ„ํŠผ์œผ๋กœ ํด๋ฆญํ•˜๋ฉด ์ƒํ™ฉ์— ๋งž๋Š” ๋ฉ”๋‰ด ํ•ญ๋ชฉ์ด ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.

๋ฌธ์ œ๋Š” ํด๋”์˜ ๊ฒฝ์šฐ ์ž‘๋™ํ•˜๋Š” "C:\Users\PROFILE\AppData\Local\Microsoft\WindowsApps\wt.exe -d "%V" -p "Debian" ๋ฅผ ์ถ”๊ฐ€ํ•˜๋ฉด ํŒŒ์ผ ํƒ์ƒ‰๊ธฐ์˜ ๋“œ๋ผ์ด๋ธŒ์—๋Š” ์ ์šฉ๋˜์ง€ ์•Š๋Š”๋‹ค๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. ๊ทธ๋Ÿฐ ๋‹ค์Œ WT๊ฐ€ ์ž ์‹œ ์—ด๋ฆฌ๊ณ  ์–ด๋–ค ์ด์œ ๋กœ ๋‹ซํž™๋‹ˆ๋‹ค.

๋‚ด ์งˆ๋ฌธ์€ ์™œ Windows Terminal์ด ๋“œ๋ผ์ด๋ธŒ์˜ ๊ฒฝ์šฐ "% V"๋ฅผ ์ฒ˜๋ฆฌ ํ•  ์ˆ˜ โ€‹โ€‹์—†๋Š”์ง€ ์•Œ์•„ ๋‚ธ ๊ฒฝ์šฐ์ž…๋‹ˆ๋‹ค.

๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

๋ฐ”๋กœ ๊ฐ€๊ธฐ๋Š” %V\. ์ด์–ด์•ผํ•ฉ๋‹ˆ๋‹ค.

๋ฐ”๋กœ ๊ฐ€๊ธฐ๋Š” %V\. ์ด์–ด์•ผํ•ฉ๋‹ˆ๋‹ค.

์˜ค ์ด๋Ÿฐ! ์ด๊ฒƒ์€ ๊ต‰์žฅํ•ฉ๋‹ˆ๋‹ค !!!

์ด๊ฒƒ์€ ๋“œ๋ผ์ด๋ธŒ ๋ฐ ํด๋”์—์„œ ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค ...

"% V"๋’ค์—์žˆ๋Š” "๊ณผํ•™"์— ๋Œ€ํ•ด ์„ค๋ช…ํ•ด ์ฃผ์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ? ์ผ๋ฐ˜ "% V"์™€ ์–ด๋–ป๊ฒŒ ๋‹ค๋ฆ…๋‹ˆ ๊นŒ?

๊ทธ๋ž˜์„œ ์ด๊ฒƒ์€ ๊ทธ "์ด์ƒํ•œ ๋ฌธ์ œ"์ค‘ ํ•˜๋‚˜์ž…๋‹ˆ๋‹ค. ๋“œ๋ผ์ด๋ธŒ ๋ฃจํŠธ์˜ "%V" ์ด "C:\" ํ™•์žฅ๋ฉ๋‹ˆ๋‹ค. ๋Œ€๋ถ€๋ถ„์˜ ๋ช…๋ น ์ธ์ˆ˜ ํŒŒ์„œ๋Š” \" ๋ฅผ " . \ ๋Š” "์ด์Šค์ผ€์ดํ”„"๋ฌธ์ž์ด๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค. ๋”ฐ๋ผ์„œ์—์„œ ๊ฒฝ๋กœ๋ฅผ ์ „ํ™˜ "C:\" ๋กœ C:" (์ฒซ ๋ฒˆ์งธ ๊ฒฌ์ ์„ ์‚ญ์ œํ•˜๊ณ , ๋‘ ๋ฒˆ์งธ ์†Œ๋น„).

"%V\." ์‚ฌ์šฉํ•˜๋ฉด ๋“œ๋ผ์ด๋ธŒ ๋ฃจํŠธ๊ฐ€ ์™„์ „ํžˆ ํ•ฉ๋ฒ•์  ์ธ "C:\\." ํ™•์žฅ๋ฉ๋‹ˆ๋‹ค.

๊ทธ๋ž˜์„œ ์ด๊ฒƒ์€ ๊ทธ "์ด์ƒํ•œ ๋ฌธ์ œ"์ค‘ ํ•˜๋‚˜์ž…๋‹ˆ๋‹ค. ๋“œ๋ผ์ด๋ธŒ ๋ฃจํŠธ์˜ "%V" ์ด "C:\" ํ™•์žฅ๋ฉ๋‹ˆ๋‹ค. ๋Œ€๋ถ€๋ถ„์˜ ๋ช…๋ น ์ธ์ˆ˜ ํŒŒ์„œ๋Š” \" ๋ฅผ " . \ ๋Š” "์ด์Šค์ผ€์ดํ”„"๋ฌธ์ž์ด๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค. ๋”ฐ๋ผ์„œ์—์„œ ๊ฒฝ๋กœ๋ฅผ ์ „ํ™˜ "C:\" ๋กœ C:" (์ฒซ ๋ฒˆ์งธ ๊ฒฌ์ ์„ ์‚ญ์ œํ•˜๊ณ , ๋‘ ๋ฒˆ์งธ ์†Œ๋น„).

"%V\." ์‚ฌ์šฉํ•˜๋ฉด ๋“œ๋ผ์ด๋ธŒ ๋ฃจํŠธ๊ฐ€ ์™„์ „ํžˆ ํ•ฉ๋ฒ•์  ์ธ "C:\\." ํ™•์žฅ๋ฉ๋‹ˆ๋‹ค.

์•Œ๊ฒ ์Šต๋‹ˆ๋‹ค. ๋„์™€ ์ฃผ์…”์„œ ๋‹ค์‹œ ํ•œ ๋ฒˆ ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

์ €์žฅ์†Œ๋ฅผ ํ†ตํ•ด ์„ค์น˜ํ–ˆ์ง€๋งŒ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ํ‚ค์— wt.exe ๋ช…๋ น์„ ์ž…๋ ฅํ•˜๋ฉด Windows์—์„œ "์‘์šฉ ํ”„๋กœ๊ทธ๋žจ์„ ์ฐพ์„ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค"๋ผ๋Š” ๋ฉ”์‹œ์ง€๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. ์ „์ฒด ๊ฒฝ๋กœ (์˜ˆ : %LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe )๋กœ ๋ณ€๊ฒฝํ•˜๋ฉด "์•ก์„ธ์Šค ํ•  ์ˆ˜ ์—†์Œ"์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค (์ด ํ•ญ๋ชฉ์— ๋Œ€ํ•œ ์˜ฌ๋ฐ”๋ฅธ ๊ถŒํ•œ์ด ์•„๋‹˜).

ํ˜„์žฌ ๋ช…๋ น์ด cmd.exe /C start wt.exe ์œผ๋กœ ์ถ”๊ฐ€๋˜์–ด ์žˆ์œผ๋ฉฐ wt๋ฅผ ์—ด ๋•Œ ์ด์ „ cmd ํ”„๋กฌํ”„ํŠธ๊ฐ€ ํ™”๋ฉด์— ๊นœ๋ฐ•์ž„์—๋„ ๋ถˆ๊ตฌํ•˜๊ณ  ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

์ €์žฅ์†Œ๋ฅผ ํ†ตํ•ด ์„ค์น˜ํ–ˆ์ง€๋งŒ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ํ‚ค์— wt.exe ๋ช…๋ น์„ ์ž…๋ ฅํ•˜๋ฉด Windows์—์„œ "์‘์šฉ ํ”„๋กœ๊ทธ๋žจ์„ ์ฐพ์„ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค"๋ผ๋Š” ๋ฉ”์‹œ์ง€๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. ์ „์ฒด ๊ฒฝ๋กœ (์˜ˆ : %LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe )๋กœ ๋ณ€๊ฒฝํ•˜๋ฉด "์•ก์„ธ์Šค ํ•  ์ˆ˜ ์—†์Œ"์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค (์ด ํ•ญ๋ชฉ์— ๋Œ€ํ•œ ์˜ฌ๋ฐ”๋ฅธ ๊ถŒํ•œ์ด ์•„๋‹˜).

ํ˜„์žฌ ๋ช…๋ น์ด cmd.exe /C start wt.exe ์œผ๋กœ ์ถ”๊ฐ€๋˜์–ด ์žˆ์œผ๋ฉฐ wt๋ฅผ ์—ด ๋•Œ ์ด์ „ cmd ํ”„๋กฌํ”„ํŠธ๊ฐ€ ํ™”๋ฉด์— ๊นœ๋ฐ•์ž„์—๋„ ๋ถˆ๊ตฌํ•˜๊ณ  ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

"C : \ Users \ [user] AppData \ Local"๊ณผ ๊ฐ™์€ ์‹ค์ œ ์ฃผ์†Œ์—์„œ regedit % LOCALAPPDATA %๋ฅผ ํ†ตํ•ด ๋ณ€๊ฒฝ

๊ทธ๋Ÿฐ ๋‹ค์Œ์ด "startingDirectory": "%__CD__%" ์„ profile.json์— ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.

์ €์žฅ์†Œ๋ฅผ ํ†ตํ•ด ์„ค์น˜ํ–ˆ์ง€๋งŒ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ํ‚ค์— wt.exe ๋ช…๋ น์„ ์ž…๋ ฅํ•˜๋ฉด Windows์—์„œ "์‘์šฉ ํ”„๋กœ๊ทธ๋žจ์„ ์ฐพ์„ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค"๋ผ๋Š” ๋ฉ”์‹œ์ง€๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. ์ „์ฒด ๊ฒฝ๋กœ (์˜ˆ : %LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe )๋กœ ๋ณ€๊ฒฝํ•˜๋ฉด "์•ก์„ธ์Šค ํ•  ์ˆ˜ ์—†์Œ"์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค (์ด ํ•ญ๋ชฉ์— ๋Œ€ํ•œ ์˜ฌ๋ฐ”๋ฅธ ๊ถŒํ•œ์ด ์•„๋‹˜).
ํ˜„์žฌ ๋ช…๋ น์ด cmd.exe /C start wt.exe ์œผ๋กœ ์ถ”๊ฐ€๋˜์–ด ์žˆ์œผ๋ฉฐ wt๋ฅผ ์—ด ๋•Œ ์ด์ „ cmd ํ”„๋กฌํ”„ํŠธ๊ฐ€ ํ™”๋ฉด์— ๊นœ๋ฐ•์ž„์—๋„ ๋ถˆ๊ตฌํ•˜๊ณ  ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

"C : \ Users [user] AppData \ Local"๊ณผ ๊ฐ™์€ ์‹ค์ œ ์ฃผ์†Œ์—์„œ regedit % LOCALAPPDATA %๋ฅผ ํ†ตํ•ด ๋ณ€๊ฒฝ

๊ทธ๋Ÿฐ ๋‹ค์Œ์ด "startingDirectory": "%__CD__%" ์„ profile.json์— ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.

๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. %LOCALAPPDATA% ๋Œ€์‹  ํ™•์žฅ ๊ฒฝ๋กœ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด ์‹ค์ œ๋กœ ์˜ฌ๋ฐ”๋ฅธ ์ ‘๊ทผ ๋ฐฉ์‹ ์ธ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ์˜ˆ์ƒ๋Œ€๋กœ ์ž‘๋™ํ•˜๋Š” "startingDirectory": "." ๋„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.

@ Wosser1sProductions ๋Š” ๋‹ค๋ฅธ ๋ช…๋ น ๋Œ€์‹ ์ด cmd.exe /s /k pushd "%V" ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

์š”์ ์€ ์ƒํ™ฉ์— ๋งž๋Š” ๋ฉ”๋‰ด์—์„œ ์ƒˆ Windows ํ„ฐ๋ฏธ๋„ ( wt.exe ์‹คํ–‰ ํŒŒ์ผ)์„ ์—ฌ๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์ผ๋ฐ˜ ๋ช…๋ น ํ”„๋กฌํ”„ํŠธ๋ฅผ ์—ด๊ธฐ์œ„ํ•œ ๊ธฐ๋ณธ๊ฐ’์€ ์‹ค์ œ๋กœ cmd.exe /s /k pushd "%V" ์ž…๋‹ˆ๋‹ค.

์—ฌ๊ธฐ ์— ํ•ด๊ฒฐ์ฑ…์ด ์žˆ์Šต๋‹ˆ๋‹ค.

reg ํŒŒ์ผ์— ๋Œ€ํ•œ ๋‚˜์œ ์ ์€ HKEY_CLASSES_ROOT ์ปจํ…์ŠคํŠธ์—์„œ ํŠน์ • ์‚ฌ์šฉ์ž wt์˜ ๊ฒฝ๋กœ๋ฅผ ์ถ”๊ฐ€ํ•ด์•ผํ•œ๋‹ค๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค (UWP๊ฐ€ ์‚ฌ์šฉ์ž ๋‹จ์œ„๋กœ ์„ค์น˜๋˜๊ธฐ ๋•Œ๋ฌธ์—). HKEY_CURRENT_USER๋กœ ๋ฐ”๊พธ๋ ค๊ณ ํ–ˆ์ง€๋งŒ ์ž‘๋™ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

"global"ํด๋”์— WT ์‹œ์Šคํ…œ ์ „์ฒด๋ฅผ ์„ค์น˜ํ•˜๋Š” ๋ฐฉ๋ฒ•์ด ์žˆ๋‹ค๋ฉด ๋” ๋‚˜์€ ๋ฐฉ๋ฒ•์ด ๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค.

๋‹ค๋ฅธ ์‚ฌ๋žŒ์ด ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ์—ฌ๊ธฐ์— ๋‚ด reg ํŒŒ์ผ์„ ์ถ”๊ฐ€ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Windows Terminal Here"
"Icon"="E:\\Resimler\\ico\\terminal.ico"

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="D:\\WindowsApps\\Microsoft.WindowsTerminal_0.10.781.0_x64__8wekyb3d8bbwe\\WindowsTerminal.exe"

์ฒซ ๋ฒˆ์งธ @๋Š” ์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด์— ๋‚˜ํƒ€๋‚˜๋Š” ํ…์ŠคํŠธ์ž…๋‹ˆ๋‹ค (_ "Windows Terminal Here"_).
"์•„์ด์ฝ˜"์€ ์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด์—๋„ ํ‘œ์‹œ๋˜๋Š” ์•„์ด์ฝ˜ ๊ฒฝ๋กœ์ž…๋‹ˆ๋‹ค.
๋‘ ๋ฒˆ์งธ @๋Š” ํ„ฐ๋ฏธ๋„ exe ๊ฒฝ๋กœ์ž…๋‹ˆ๋‹ค. ์–ด๋””์— ์žˆ๋Š”์ง€ ์•Œ์•„ ๋‚ด์•ผํ•ฉ๋‹ˆ๋‹ค.

์ด ์ฝ”๋“œ๋ฅผ ์‚ฌ์šฉ์ž ์ง€์ •ํ•˜์—ฌ txt ํŒŒ์ผ์— ๋ถ™์—ฌ๋„ฃ๊ณ  ์ด๋ฆ„์„ _wt.reg_๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ๊ทธ๊ฒƒ์„ ์‹คํ–‰ํ•˜๋Š” ๊ฒƒ๋ณด๋‹ค.

๊ทธ๋Ÿฐ ๋‹ค์Œ ์ƒˆ Windows ํ„ฐ๋ฏธ๋„์„ ์—ฝ๋‹ˆ ๋‹ค. ์„ค์ •์œผ๋กœ ๋ฐ”๋กœ ๊ฐ€๊ธฐ:
image

์—ฌ๊ธฐ profiles.json์— ์žˆ์Šต๋‹ˆ๋‹ค.
ํ•ด๋‹น ์ฝ”๋“œ๋ฅผ ๋ถ™์—ฌ ๋„ฃ์œผ์‹ญ์‹œ์˜ค.

{
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
    "profiles":
    {
        "defaults":
        {
        },
        "list":
        [
            {
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "name": "cmd",
                "commandline": "cmd.exe",
                "hidden": false,
                "startingDirectory": "."
            },
            {
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "name": "Windows PowerShell",
                "commandline": "powershell.exe",
                "hidden": false
            },
            {
                "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
                "hidden": false,
                "name": "Azure Cloud Shell",
                "source": "Windows.Terminal.Azure"
            },
            {
                "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
                "hidden": false,
                "name": "Ubuntu",
                "source": "Windows.Terminal.Wsl"
            }
        ]
    },
    "schemes": [],
    "keybindings": []
}


๊ทธ๊ฒŒ ๋‹ค์•ผ

์—ฌ๊ธฐ์— ๋‚ด ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ์Šคํฌ๋ฆฝํŠธ๊ฐ€ ์žˆ์œผ๋ฉฐ ๋ช…๋ น ์ค„ ์ธ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. CMD, Powershell ๋ฐ WSL Ubuntu ๊ธฐ๋ณธ ํ”„๋กœํ•„ ์ด๋ฆ„์— ๋Œ€ํ•ด ์ผ๋ฐ˜ ๋ฐ ๊ด€๋ฆฌ์ž ํ”„๋กฌํ”„ํŠธ๋กœ ๊ตฌ์„ฑํ–ˆ์Šต๋‹ˆ๋‹ค. ์ด ๋ฌธ์ œ์—์„œ ๋ณธ ๋Œ€๋ถ€๋ถ„์˜ ์Šคํฌ๋ฆฝํŠธ์™€ ๋‹ฌ๋ฆฌ profiles.json์„ ๋ณ€๊ฒฝํ•  ํ•„์š”๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.
https://gist.github.com/OmegaRogue/9069405e7b0bf5e76f1c5d9c96f8b663

์ด๋Ÿฌํ•œ ์˜ต์…˜ ์ค‘ ์–ด๋Š ๊ฒƒ๋„ ๋‚ด๊ฐ€ ์™„์ „ํžˆ ๋งŒ์กฑํ• ๋งŒํ•œ ๊ฒƒ์ด ์•„๋‹™๋‹ˆ๋‹ค. ๊ทธ๋ž˜์„œ ๋‚˜๋Š” ์ฐ”๋ €๋‹ค.

@OmegaRogue ์˜ ์†”๋ฃจ์…˜์„ ์ˆ˜์ •

image

๋ถˆํ–‰ํžˆ๋„ ๋™์ผํ•œ ์ˆ˜์ค€์—์„œ ๊ด€๋ฆฌ์ž ๋ช…๋ น์„ ์–ป๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ์ด๊ฒƒ์ด ๋‚ด๊ฐ€ ๊ฐ€์ง„ ๊ฒƒ์ž…๋‹ˆ๋‹ค.
image

๋‹ค์Œ์€ ๋‚ด .reg ํŒŒ์ผ์ž…๋‹ˆ๋‹ค.
์‚ฌ๋žŒ๋“ค์ด ์–ด๋–ค ์„น์…˜์ด ์–ด๋–ค ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•˜๋Š”์ง€ ํŒŒ์•…ํ•˜๋Š” ๋ฐ ๋„์›€์ด๋˜๋Š” ๋ช‡ ๊ฐ€์ง€ ์˜๊ฒฌ์„ ๋‚จ๊ฒผ์œผ๋ฏ€๋กœ ๋ˆ„๊ตฐ๊ฐ€๊ฐ€ ๊ด€๋ฆฌ์ž ์ค‘์ฒฉ์„ ์ˆ˜์ •ํ•˜๋Š” ๋ฐ ๋„์›€์„ ์ค„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ด๋Ÿฌํ•œ ์˜ต์…˜ ์ค‘ ์–ด๋Š ๊ฒƒ๋„ ๋‚ด๊ฐ€ ์™„์ „ํžˆ ๋งŒ์กฑํ• ๋งŒํ•œ ๊ฒƒ์ด ์•„๋‹™๋‹ˆ๋‹ค. ๊ทธ๋ž˜์„œ ๋‚˜๋Š” ์ฐ”๋ €๋‹ค.

@OmegaRogue ์˜ ์†”๋ฃจ์…˜์„ ์ˆ˜์ •

image

๋ถˆํ–‰ํžˆ๋„ ๋™์ผํ•œ ์ˆ˜์ค€์—์„œ ๊ด€๋ฆฌ์ž ๋ช…๋ น์„ ์–ป๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ์ด๊ฒƒ์ด ๋‚ด๊ฐ€ ๊ฐ€์ง„ ๊ฒƒ์ž…๋‹ˆ๋‹ค.
image

๋‹ค์Œ์€ ๋‚ด .reg ํŒŒ์ผ์ž…๋‹ˆ๋‹ค.
์‚ฌ๋žŒ๋“ค์ด ์–ด๋–ค ์„น์…˜์ด ์–ด๋–ค ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•˜๋Š”์ง€ ํŒŒ์•…ํ•˜๋Š” ๋ฐ ๋„์›€์ด๋˜๋Š” ๋ช‡ ๊ฐ€์ง€ ์˜๊ฒฌ์„ ๋‚จ๊ฒผ์œผ๋ฏ€๋กœ ๋ˆ„๊ตฐ๊ฐ€๊ฐ€ ๊ด€๋ฆฌ์ž ์ค‘์ฒฉ์„ ์ˆ˜์ •ํ•˜๋Š” ๋ฐ ๋„์›€์„ ์ค„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

ํŒŒ์ผ์„ ์ˆ˜์ •ํ•˜์—ฌ ๊ด€๋ฆฌ์ž ์ค‘์ฒฉ์„ ์ œ๊ฑฐ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

@OmegaRogue ๋ฉ‹์ง€์ง€๋งŒ ์ฃผ ๋ฉ”๋‰ด ์•„์ด์ฝ˜์ด ๋ฒ„์ „๊ณผ ํ•จ๊ป˜ ์ฃฝ์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค (๋”ฐ๋ผ์„œ WindowsTerminal.exe ๊ฒฝ๋กœ ๋ณ€๊ฒฝ). ๋” ๋ณดํŽธ์ ์œผ๋กœ ์ ‘๊ทผ ๊ฐ€๋Šฅํ•œ ์•„์ด์ฝ˜์œผ๋กœ ๋Œ€์ฒดํ•˜๋Š” ๊ฒƒ์ด ๋” ์ข‹์„ ๊ฒƒ์ž…๋‹ˆ๋‹ค.

ํŽธ์ง‘ : ๋˜ํ•œ ์ค‘์ฒฉ ๋ฌธ์ œ์—†์ด ๊ด€๋ฆฌ์ž ์˜ต์…˜ (@ t-makaro์˜)์„ ์ถ”๊ฐ€ํ•˜๋ฉด ์ข‹์„ ๊ฒƒ์ž…๋‹ˆ๋‹ค.

@lllopo @OmegaRogue @ t-makaro @sundowatch ์™€ ๋‹ค๋ฅธ ์‚ฌ๋žŒ๋“ค์ด ๋ฐ”ํ€ด๋ฅผ ์žฌ์ฐฝ์กฐํ•˜๋Š” ๋ฐฉ๋ฒ•์ด ์žฌ๋ฏธ ์žˆ๋„ค์š” .

์ด reg ํŒŒ์ผ์€ ๋™์ผํ•œ ์‹ค์ˆ˜๋ฅผ ๋ฐ˜๋ณตํ•ฉ๋‹ˆ๋‹ค. ๋กค๋ฐฑ์ด๋‚˜ ํ…Œ์ŠคํŠธ๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค. ฤ› ลก ฤ ล™ รญ รฉ รฝ รฉ ลฏ ์™€ ๊ฐ™์€ ๋น„ ASCII ๋ฌธ์ž๊ฐ€์žˆ๋Š” ๊ฒฝ๋กœ์—์„œ ์ž‘๋™ํ•˜์ง€ ์•Š๊ฑฐ๋‚˜ ํ„ฐ๋ฏธ๋„ ์„ค์ •์„ ๋ณ€๊ฒฝํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

๋Œ€์‹  ์—ฌ๊ธฐ ๋ฅผ๋ณด์„ธ์š”.

@lllopo @OmegaRogue @ t-makaro @sundowatch ์™€ ๋‹ค๋ฅธ ์‚ฌ๋žŒ๋“ค์ด ๋ฐ”ํ€ด๋ฅผ ์žฌ์ฐฝ์กฐํ•˜๋Š” ๋ฐฉ๋ฒ•์ด ์žฌ๋ฏธ ์žˆ๋„ค์š” .

์ด reg ํŒŒ์ผ์€ ๋™์ผํ•œ ์‹ค์ˆ˜๋ฅผ ๋ฐ˜๋ณตํ•ฉ๋‹ˆ๋‹ค. ๋กค๋ฐฑ์ด๋‚˜ ํ…Œ์ŠคํŠธ๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค. ฤ› ลก ฤ ล™ รญ รฉ รฝ รฉ ลฏ ์™€ ๊ฐ™์€ ๋น„ ASCII ๋ฌธ์ž๊ฐ€์žˆ๋Š” ๊ฒฝ๋กœ์—์„œ ์ž‘๋™ํ•˜์ง€ ์•Š๊ฑฐ๋‚˜ ํ„ฐ๋ฏธ๋„ ์„ค์ •์„ ๋ณ€๊ฒฝํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

๋Œ€์‹  ์—ฌ๊ธฐ ๋ฅผ๋ณด์„ธ์š”.

๋‚˜๋Š” ๋ฌธ์ œ๋ฅผ ์•Œ๊ณ  ์žˆ์œผ๋ฉฐ ๋‚ด๊ฐ€ ์‚ฌ์šฉํ•˜๋Š” ๋ฒ„์ „์—๋Š” ๋ฌธ์ œ๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.์ด ๋ฒ„์ „์€ ๊ฐ€๋…์„ฑ์„ ์œ„ํ•ด ๊ฒŒ์‹œํ–ˆ์Šต๋‹ˆ๋‹ค. ๋‚ด ๋ฒ„์ „์€ ์ผ๋ฐ˜ ๋ฌธ์ž์—ด ๋Œ€์‹  16 ์ง„์ˆ˜ (2) ์ธ์ฝ”๋”ฉ ๋œ ํ…์ŠคํŠธ๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

์‚ฌ๋žŒ๋“ค์€ ํ˜„์žฌ ํด๋”์—์„œ ์—ด๊ธฐ ์œ„ํ•ด ์˜ค๋ฅธ์ชฝ ํด๋ฆญ์„ ์ถ”๊ฐ€ํ•˜๋Š” ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ํŽธ์ง‘ ์ž‘์—…์— "startingDirectory": "." ๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฒฝ์šฐ์˜ ๋ถ€์ž‘์šฉ์„ ์žŠ์–ด ๋ฒ„๋ฆฝ๋‹ˆ๋‹ค. ์ด์ œ ์‹œ์ž‘ ๋ฉ”๋‰ด๋ฅผ ํ†ตํ•ด ํ„ฐ๋ฏธ๋„์„ ์—ด๋ฉด system32 ๋””๋ ‰ํ† ๋ฆฌ

์‚ฌ๋žŒ๋“ค์€ ํ˜„์žฌ ํด๋”์—์„œ ์—ด๊ธฐ ์œ„ํ•ด ์˜ค๋ฅธ์ชฝ ํด๋ฆญ์„ ์ถ”๊ฐ€ํ•˜๋Š” ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ํŽธ์ง‘ ์ž‘์—…์— "startingDirectory": "." ๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฒฝ์šฐ์˜ ๋ถ€์ž‘์šฉ์„ ์žŠ์–ด ๋ฒ„๋ฆฝ๋‹ˆ๋‹ค. ์ด์ œ ์‹œ์ž‘ ๋ฉ”๋‰ด๋ฅผ ํ†ตํ•ด ํ„ฐ๋ฏธ๋„์„ ์—ด๋ฉด system32 ๋””๋ ‰ํ† ๋ฆฌ

๊ทธ๊ฒƒ์ด ๋‚ด ์Šคํฌ๋ฆฝํŠธ๊ฐ€ ํ•„์š”ํ•˜์ง€ ์•Š์€ ์ด์œ ์ž…๋‹ˆ๋‹ค.

์ด๋Ÿฌํ•œ ์˜ต์…˜ ์ค‘ ์–ด๋Š ๊ฒƒ๋„ ๋‚ด๊ฐ€ ์™„์ „ํžˆ ๋งŒ์กฑํ• ๋งŒํ•œ ๊ฒƒ์ด ์•„๋‹™๋‹ˆ๋‹ค. ๊ทธ๋ž˜์„œ ๋‚˜๋Š” ์ฐ”๋ €๋‹ค.

@OmegaRogue ์˜ ์†”๋ฃจ์…˜์„ ์ˆ˜์ •

image

๋ถˆํ–‰ํžˆ๋„ ๋™์ผํ•œ ์ˆ˜์ค€์—์„œ ๊ด€๋ฆฌ์ž ๋ช…๋ น์„ ์–ป๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ์ด๊ฒƒ์ด ๋‚ด๊ฐ€ ๊ฐ€์ง„ ๊ฒƒ์ž…๋‹ˆ๋‹ค.
image

๋‹ค์Œ์€ ๋‚ด .reg ํŒŒ์ผ์ž…๋‹ˆ๋‹ค.
์‚ฌ๋žŒ๋“ค์ด ์–ด๋–ค ์„น์…˜์ด ์–ด๋–ค ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•˜๋Š”์ง€ ํŒŒ์•…ํ•˜๋Š” ๋ฐ ๋„์›€์ด๋˜๋Š” ๋ช‡ ๊ฐ€์ง€ ์˜๊ฒฌ์„ ๋‚จ๊ฒผ์œผ๋ฏ€๋กœ ๋ˆ„๊ตฐ๊ฐ€๊ฐ€ ๊ด€๋ฆฌ์ž ์ค‘์ฒฉ์„ ์ˆ˜์ •ํ•˜๋Š” ๋ฐ ๋„์›€์„ ์ค„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ค‘์ฒฉ์ด์—†๋Š” ์š”์ ์— ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ์Šคํฌ๋ฆฝํŠธ ๋ฒ„์ „์„ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.
https://gist.github.com/OmegaRogue/9069405e7b0bf5e76f1c5d9c96f8b663#file -directory_prompts_windowsterminal_nonnested-reg

์ด๋ ‡๊ฒŒ :

  • ~ https : //github.com/microsoft/terminal/blob/master/res/terminal.ico๋ฅผ % USERPROFILE % AppData \ Local \ Terminal์— ๋‹ค์šด๋กœ๋“œ
  • \๋ฅผ ๋ฐ”๊พธ์–ด reg ํŒŒ์ผ์„ ๋งŒ๋“ญ๋‹ˆ๋‹ค.
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Windows Terminal here"
"Icon"="C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_0.10.781.0_x64__8wekyb3d8bbwe\\WindowsTerminal.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="C:\\Users\\<user>\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe -d %V"

[HKEY_CLASSES_ROOT\Directory\shell\wt]
@="Windows Terminal here"
"Icon"="C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_0.10.781.0_x64__8wekyb3d8bbwe\\WindowsTerminal.exe"

[HKEY_CLASSES_ROOT\Directory\shell\wt\command]
@="C:\\Users\\<user>\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe -d %V"
  • ๊ทธ๊ฒƒ์„ ์‹คํ–‰

์ด๋ ‡๊ฒŒ :

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Windows Terminal here"
"Icon"="C:\\Users\\<user>\\AppData\\Local\\Terminal\\terminal.ico"

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="C:\\Users\\<user>\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe -d ."

[HKEY_CLASSES_ROOT\Directory\shell\wt]
@="Windows Terminal here"
"Icon"="C:\\Users\\<user>\\AppData\\Local\\Terminal\\terminal.ico"

[HKEY_CLASSES_ROOT\Directory\shell\wt\command]
@="C:\\Users\\<user>\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe -d ."
  • ๊ทธ๊ฒƒ์„ ์‹คํ–‰

์•„์ด์ฝ˜์„ ๋‹ค์šด๋กœ๋“œ ํ•  ํ•„์š”๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค. ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ์Šคํฌ๋ฆฝํŠธ์—์„œํ–ˆ๋˜ ๊ฒƒ์ฒ˜๋Ÿผ ์‹คํ–‰ ํŒŒ์ผ์˜ ๊ฒฝ๋กœ๋ฅผ ์•„์ด์ฝ˜ ๊ฒฝ๋กœ๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์Œ, Windows ํ„ฐ๋ฏธ๋„์ด ์—…๋ฐ์ดํŠธ ๋  ๋•Œ๋งˆ๋‹ค reg ํŒŒ์ผ์„ ํŽธ์ง‘ํ•ด์•ผํ•ฉ๋‹ˆ๊นŒ? ์•„์ด์ฝ˜ ํŒŒ์ผ์„ ๋‹ค๋ฅธ ๊ณณ์— ์ €์žฅํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Windows Terminal here"
"Icon"="C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_0.11.1121.0_x64__8wekyb3d8bbwe\\WindowsTerminal.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="C:\\Users\\user\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe -d ."

[HKEY_CLASSES_ROOT\Directory\shell\wt]
@="Windows Terminal here"
"Icon"="C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_0.11.1121.0_x64__8wekyb3d8bbwe\\WindowsTerminal.exe"

[HKEY_CLASSES_ROOT\Directory\shell\wt\command]
@="C:\\Users\\user\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe -d ."

ํด๋”๋ฅผ ๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ ๋ฒ„ํŠผ์œผ๋กœ ํด๋ฆญํ•˜๊ณ  ํ„ฐ๋ฏธ๋„์„ ์‹œ์ž‘ํ•˜๋ฉด ์ œ๋Œ€๋กœ ์ž‘๋™ํ•˜์ง€ ์•Š๊ณ  ์ปจํ…Œ์ด๋„ˆ ํด๋”์—์„œ ์—ด๋ฆฝ๋‹ˆ๋‹ค.
๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ์Šคํฌ๋ฆฝํŠธ์—์„œ wt.exe -d . ๋ฅผ wt.exe -d "%V" ๋กœ ๋Œ€์ฒดํ•˜์—ฌ ํ•ด๊ฒฐ์ฑ…์„ ์ฐพ์•˜์Šต๋‹ˆ๋‹ค. ์ด๊ฒƒ์ด VS Code๊ฐ€ํ•˜๋Š” ๋ฐฉ์‹์ž…๋‹ˆ๋‹ค.

๋‚ด๊ฐ€ ์‚ฌ์šฉํ•œ ๊ณ ์ • ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ์Šคํฌ๋ฆฝํŠธ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค (์•„์ด์ฝ˜ ์—†์Œ).

ํŽธ์ง‘ : % V ์ถ”๊ฐ€. ์ œ์•ˆ ๋œ๋Œ€๋กœ ๋“œ๋ผ์ด๋ธŒ๋ฅผ ๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ ๋ฒ„ํŠผ์œผ๋กœ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\wt]
@="Open Windows Terminal here"
[HKEY_CLASSES_ROOT\Directory\shell\wt\command]
@="C:\\Users\\user\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe -d \"%V.\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Open Windows Terminal here"
[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="C:\\Users\\user\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe -d \"%V.\""

[HKEY_CLASSES_ROOT\Drive\shell\wt]
@="Open Windows Terminal here"
[HKEY_CLASSES_ROOT\Drive\shell\wt\command]
@="C:\\Users\\user\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe -d \"%V.\""

์ด ์†”๋ฃจ์…˜์€ ํ›Œ๋ฅญํ•˜๊ฒŒ ์ž‘๋™ํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

@BealeStBluesBoy ๋ฐ @ megapro17 reg ํŒŒ์ผ์— ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค.
wt.exe -d \"%V\" ๊ฐ€ ์„ ํƒํ•œ ํด๋”์—์„œ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์—ด๋ฆฌ์ง€ ๋งŒ ๋“œ๋ผ์ด๋ธŒ์˜ ๋ฃจํŠธ์—์žˆ์„ ๋•Œ๋Š” ์ž‘๋™ํ•˜์ง€ ์•Š๋Š” ๊ฒƒ์œผ๋กœ ๋‚˜ํƒ€๋‚ฌ์Šต๋‹ˆ๋‹ค. c: ๋˜๋Š” d: . ํ„ฐ๋ฏธ๋„์ด ์—ด๋ฆฌ์ง€ ๋งŒ ์˜ค๋ฅ˜ ์ฝ”๋“œ 0x8007010b
๋˜ํ•œ ๋“œ๋ผ์ด๋ธŒ๋ฅผ ์„ ํƒํ•˜๊ณ  ํ•ด๋‹น ๋ช…๋ น์„ ์‹คํ–‰ํ•˜๋ฉด ๋˜ ๋‹ค๋ฅธ ์˜ค๋ฅ˜๊ฐ€ ๋‚˜ํƒ€๋‚˜๊ณ  ํ„ฐ๋ฏธ๋„์ด ์—ด๋ฆฌ์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

๊ทธ๋Ÿฌ๋‚˜ wt.exe -d . ํ•˜๋ฉด ํ„ฐ๋ฏธ๋„์ด ๋ฌธ์ œ์—†์ด ์—ด๋ฆฌ๋ฏ€๋กœ ์–ด๋””์— ์žˆ๋“  ์ƒ๊ด€ ์—†์Šต๋‹ˆ๋‹ค. ๋‹จ์ ์€ ์„ ํƒํ•œ ๋””๋ ‰ํ† ๋ฆฌ๊ฐ€ ์•„๋‹ˆ๋ผ ํ˜„์žฌ์žˆ๋Š” ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์—ด ๋ฟ์ด๋ผ๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. ๋“œ๋ผ์ด๋ธŒ๋ฅผ ์ง์ ‘ ์„ ํƒํ•˜๋ฉด c:\windows\system32 ํด๋”์—์„œ ์—ด๋ฆฝ๋‹ˆ๋‹ค.

ํ•ญ์ƒ ์‚ฌ์šฉํ•  ์ˆ˜์žˆ๋Š” ํ„ฐ๋ฏธ๋„์ด ์—ด๋ฆฌ๋ฏ€๋กœ wt.exe -d . ๋ฅผ ๊ณ ์ˆ˜ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

ํŽธ์ง‘ํ•˜๋‹ค:
@ DHowett-MSFT๊ฐ€ ์ œ์•ˆํ•œ๋Œ€๋กœ wt.exe -d \"%V\.\" ๋‹ค๋ฅธ ์˜ต์…˜์ด ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋ ‡๊ฒŒํ•˜๋ฉด ๋™์ž‘์ด ๊ฐœ์„ ๋˜๊ณ  ๋“œ๋ผ์ด๋ธŒ์˜ ๋ฃจํŠธ์—์žˆ๋Š” ๊ฒฝ์šฐ์—๋„ ํ„ฐ๋ฏธ๋„์ด ์—ด๋ฆฝ๋‹ˆ๋‹ค. ์ด ์†”๋ฃจ์…˜์—์„œ ์—ฌ์ „ํžˆ ์ž‘๋™ํ•˜์ง€ ์•Š๋Š” ํ•œ ๊ฐ€์ง€๋Š” ๋“œ๋ผ์ด๋ธŒ๋ฅผ ์„ ํƒํ•  ๋•Œ์ž…๋‹ˆ๋‹ค. ์—ฌ์ „ํžˆ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

Offtopic :์ด ๋ฌธ์ œ๋Š” ๊ฐ ๋‹จ์ผ ๋Œ“๊ธ€์„ ์ฝ๋Š” ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค. :) ๋ฌธ์ œ๋ฅผ ๋‘ ๋ฒˆ ๊ฒŒ์‹œํ•˜์—ฌ ์ฃ„์†กํ•ฉ๋‹ˆ๋‹ค.

์ด ์Šค๋ ˆ๋“œ์—์„œ ์—ฌ๋Ÿฌ ๋ฒˆ ์ œ์•ˆ ๋œ๋Œ€๋กœ "%V\." ์‹œ๋„ํ•˜์‹ญ์‹œ์˜ค.

๊ด€๋ฆฌ์ž๋กœ ์‹คํ–‰์„ ์–ด๋–ป๊ฒŒ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๊นŒ?

ํ„ฐ๋ฏธ๋„์„ ํ†ตํ•ด ๊ด€๋ฆฌ์ž๋กœ ์ „ํ™˜ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

ํ„ฐ๋ฏธ๋„์„ ํ†ตํ•ด ๊ด€๋ฆฌ์ž๋กœ ์ „ํ™˜ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

์ง€๊ธˆ์€ ๋ฐ”๋‹๋ผ Windows ํ„ฐ๋ฏธ๋„์ด ์•„๋‹™๋‹ˆ๋‹ค. ์•„๋งˆ๋„ WT v2.0, # 5000 ์ฐธ์กฐ. ๊ทธ๋Ÿฌ๋‚˜ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๋‹ค. Windows ์šฉ ์˜คํ”ˆ ์†Œ์Šค Sudo ์ธ gsudo๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
https://github.com/gerardog/gsudo

๋‚ด๊ฐ€ ์ €์ž์ด๊ธฐ ๋•Œ๋ฌธ์— ํŠน์ˆ˜ ์ œ์ž‘ ๋œ ๋งฌ์›จ์–ด๊ฐ€ ์ž ์žฌ์ ์œผ๋กœ sudo๊ฐ€ ์ ์šฉ๋œ ์ฝ˜์†”์— ํ‚ค ์ž…๋ ฅ์„ ๋ณด๋‚ด๊ณ  UAC ๊ฒฉ๋ฆฌ๋ฅผ ๊ฑด๋„ˆ ๋›ฐ๊ณ  ๊ถŒํ•œ์„ ์ƒ์Šน์‹œํ‚ฌ ์ˆ˜ ์žˆ๋‹ค๋Š” ๊ฒƒ์„ ๊ธฐ์ˆ ์ ์œผ๋กœ ๊ฒฝ๊ณ ํ•ด์•ผํ•œ๋‹ค๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค.

cmd ๋ฐฉ์‹์— ๋Œ€ํ•ด ๋งํ•˜๋ฉด ์ด๋ฏธ runas ๋ผ๋Š” cmd ๋ช…๋ น์ด ์žˆ๋Š”๋ฐ,์ด ๋ช…๋ น์€ ์•”ํ˜ธ๋ฅผ ์š”์ฒญํ•ฉ๋‹ˆ๋‹ค ( sudo ์™€ ์œ ์‚ฌ).
https://en.wikipedia.org/wiki/Runas

ํ„ฐ๋ฏธ๋„์„ ํ†ตํ•ด ๊ด€๋ฆฌ์ž๋กœ ์ „ํ™˜ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

์ง€๊ธˆ์€ ๋ฐ”๋‹๋ผ Windows ํ„ฐ๋ฏธ๋„์ด ์•„๋‹™๋‹ˆ๋‹ค. Mayve WT v2.0, # 5000 ์ฐธ์กฐ. ๊ทธ๋Ÿฌ๋‚˜ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๋‹ค. Windows ์šฉ ์˜คํ”ˆ ์†Œ์Šค Sudo ์ธ gsudo๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
https://github.com/gerardog/gsudo

๋‚ด๊ฐ€ ์ €์ž์ด๊ธฐ ๋•Œ๋ฌธ์— ํŠน์ˆ˜ ์ œ์ž‘ ๋œ ๋งฌ์›จ์–ด๊ฐ€ ์ž ์žฌ์ ์œผ๋กœ sudo๊ฐ€ ์ ์šฉ๋œ ์ฝ˜์†”์— ํ‚ค ์ž…๋ ฅ์„ ๋ณด๋‚ด๊ณ  UAC ๊ฒฉ๋ฆฌ๋ฅผ ๊ฑด๋„ˆ ๋›ฐ๊ณ  ๊ถŒํ•œ์„ ์ƒ์Šน์‹œํ‚ฌ ์ˆ˜ ์žˆ๋‹ค๋Š” ๊ฒƒ์„ ๊ธฐ์ˆ ์ ์œผ๋กœ ๊ฒฝ๊ณ ํ•ด์•ผํ•œ๋‹ค๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค.

์ผ๋ถ€ ๋ณด์•ˆ ๋ฉ”์ปค๋‹ˆ์ฆ˜์„ ํ†ตํ•ด ์›์น˜ ์•Š๋Š” ์•ก์„ธ์Šค๋ฅผ ํ™•์ธํ•˜๋ฉด ์–ด๋–ป๊ฒŒ๋ฉ๋‹ˆ๊นŒ? ์ž‘๋™ํ• ๊นŒ์š”? GSudo๋Š” ์ข‹์€ ์ถœ๋ฐœ์ž…๋‹ˆ๋‹ค.

@BealeStBluesBoy ๋ฐ @ megapro17 reg ํŒŒ์ผ์— ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค.
wt.exe -d \"%V\" ๊ฐ€ ์„ ํƒํ•œ ํด๋”์—์„œ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์—ด๋ฆฌ์ง€ ๋งŒ ๋“œ๋ผ์ด๋ธŒ์˜ ๋ฃจํŠธ์—์žˆ์„ ๋•Œ๋Š” ์ž‘๋™ํ•˜์ง€ ์•Š๋Š” ๊ฒƒ์œผ๋กœ ๋‚˜ํƒ€๋‚ฌ์Šต๋‹ˆ๋‹ค. c: ๋˜๋Š” d: . ํ„ฐ๋ฏธ๋„์ด ์—ด๋ฆฌ์ง€ ๋งŒ ์˜ค๋ฅ˜ ์ฝ”๋“œ 0x8007010b
๋˜ํ•œ ๋“œ๋ผ์ด๋ธŒ๋ฅผ ์„ ํƒํ•˜๊ณ  ํ•ด๋‹น ๋ช…๋ น์„ ์‹คํ–‰ํ•˜๋ฉด ๋˜ ๋‹ค๋ฅธ ์˜ค๋ฅ˜๊ฐ€ ๋‚˜ํƒ€๋‚˜๊ณ  ํ„ฐ๋ฏธ๋„์ด ์—ด๋ฆฌ์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

๊ทธ๋Ÿฌ๋‚˜ wt.exe -d . ํ•˜๋ฉด ํ„ฐ๋ฏธ๋„์ด ๋ฌธ์ œ์—†์ด ์—ด๋ฆฌ๋ฏ€๋กœ ์–ด๋””์— ์žˆ๋“  ์ƒ๊ด€ ์—†์Šต๋‹ˆ๋‹ค. ๋‹จ์ ์€ ์„ ํƒํ•œ ๋””๋ ‰ํ† ๋ฆฌ๊ฐ€ ์•„๋‹ˆ๋ผ ํ˜„์žฌ์žˆ๋Š” ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์—ด ๋ฟ์ด๋ผ๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. ๋“œ๋ผ์ด๋ธŒ๋ฅผ ์ง์ ‘ ์„ ํƒํ•˜๋ฉด c:\windows\system32 ํด๋”์—์„œ ์—ด๋ฆฝ๋‹ˆ๋‹ค.

ํ•ญ์ƒ ์‚ฌ์šฉํ•  ์ˆ˜์žˆ๋Š” ํ„ฐ๋ฏธ๋„์ด ์—ด๋ฆฌ๋ฏ€๋กœ wt.exe -d . ๋ฅผ ๊ณ ์ˆ˜ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

ํŽธ์ง‘ํ•˜๋‹ค:
@ DHowett-MSFT๊ฐ€ ์ œ์•ˆํ•œ๋Œ€๋กœ wt.exe -d \"%V\.\" ๋‹ค๋ฅธ ์˜ต์…˜์ด ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋ ‡๊ฒŒํ•˜๋ฉด ๋™์ž‘์ด ๊ฐœ์„ ๋˜๊ณ  ๋“œ๋ผ์ด๋ธŒ์˜ ๋ฃจํŠธ์—์žˆ๋Š” ๊ฒฝ์šฐ์—๋„ ํ„ฐ๋ฏธ๋„์ด ์—ด๋ฆฝ๋‹ˆ๋‹ค. ์ด ์†”๋ฃจ์…˜์—์„œ ์—ฌ์ „ํžˆ ์ž‘๋™ํ•˜์ง€ ์•Š๋Š” ํ•œ ๊ฐ€์ง€๋Š” ๋“œ๋ผ์ด๋ธŒ๋ฅผ ์„ ํƒํ•  ๋•Œ์ž…๋‹ˆ๋‹ค. ์—ฌ์ „ํžˆ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

Offtopic :์ด ๋ฌธ์ œ๋Š” ๊ฐ ๋‹จ์ผ ๋Œ“๊ธ€์„ ์ฝ๋Š” ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค. :) ๋ฌธ์ œ๋ฅผ ๋‘ ๋ฒˆ ๊ฒŒ์‹œํ•˜์—ฌ ์ฃ„์†กํ•ฉ๋‹ˆ๋‹ค.

@brainfoolong ๋“œ๋ผ์ด๋ธŒ์˜ ๋ฃจํŠธ ์™ธ์— ๋‹ค๋ฅธ ๋ฌธ์ œ๊ฐ€ ์žˆ์ง€๋งŒ ์—ฌ๊ธฐ ์—์„œ์ด ๋ชจ๋“  ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐ

๊ด€๋ฆฌ์ž๋กœ ์‹คํ–‰์„ ์–ด๋–ป๊ฒŒ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๊นŒ?

@aminya https://superuser.com/questions/462174/winr-runs-as-administrator-in-windows-8 ์—์„œ ๋‹ต๋ณ€ ํ•œ BrainSlugs83๊ณผ ๊ฐ™์€ UAC๋ฅผ ๋„๊ณ  ๊ด€๋ฆฌ์ž ์Šน์ธ ๋ชจ๋“œ (AAM)๋ฅผ ๋น„ํ™œ์„ฑํ™”ํ–ˆ์Šต๋‹ˆ๋‹ค
๋ณด์•ˆ ๋ฌธ์ œ ๋‚˜ ๊ทธ๋กœ ์ธํ•œ ๋ถ€์ž‘์šฉ์— ๋Œ€ํ•ด ์‹ ๊ฒฝ ์“ฐ์ง€ ์•Š๋Š”๋‹ค๋ฉด์ด ์ž‘์—…์„ ์ˆ˜ํ–‰ ํ•œ ํ›„ Windows ํ„ฐ๋ฏธ๋„์ด ๊ธฐ๋ณธ์ ์œผ๋กœ ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์œผ๋กœ ์‹คํ–‰๋˜๋ฏ€๋กœ ์œ„์˜ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‚ฌ์šฉํ•œ ํ›„ ์ถ”๊ฐ€ ์„ค์ •์ด ํ•„์š”ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

๋งˆ์นจ๋‚ด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ–ˆ์Šต๋‹ˆ๋‹ค ๐Ÿš€. ์ด๊ฒƒ์„ ๋ณ‘ํ•ฉํ•˜์‹ญ์‹œ์˜ค.

๋ณด์•ˆ ๋ฌธ์ œ๊ฐ€์—†๋Š” ๊ด€๋ฆฌ์ž ๋ฒ„ํŠผ์ด ์žˆ์Šต๋‹ˆ๋‹ค.

์ผ๋ฐ˜ Reg ํŒŒ์ผ

(PowerShellCore๊ฐ€ ์—†์œผ๋ฉด ์†๋„๊ฐ€ ๋Š๋ฆฝ๋‹ˆ๋‹ค) :

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Open Windows Terminal Here"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process wt.exe -ArgumentList \\\"-d\\\",\\\"%V.\\\"\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt_admin]
@="Open Windows Terminal Here as Admin"
"Icon"="cmd.exe"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt_admin\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process wt.exe -ArgumentList \\\"-d\\\",\\\"%V.\\\" -Verb RunAs\""

[HKEY_CLASSES_ROOT\Directory\shell\wt]
@="Open Windows Terminal Here"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOT\Directory\shell\wt\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process wt.exe -ArgumentList \\\"-d\\\",\\\"%V.\\\"\""


[HKEY_CLASSES_ROOT\Directory\shell\wt_admin]
@="Open Windows Terminal Here as Admin"
"Icon"="cmd.exe"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Directory\shell\wt_admin\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process wt.exe -ArgumentList \\\"-d\\\",\\\"%V.\\\" -Verb RunAs\""

๋” ๋น ๋ฅธ Reg ํŒŒ์ผ

(PowerShellCore๊ฐ€์žˆ๋Š” ๊ฒฝ์šฐ)

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Open Windows Terminal Here"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="pwsh -windowstyle hidden -Command \"Start-Process wt.exe -ArgumentList \\\"-d\\\",\\\"%V.\\\"\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt_admin]
@="Open Windows Terminal Here as Admin"
"Icon"="cmd.exe"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt_admin\command]
@="pwsh -windowstyle hidden -Command \"Start-Process wt.exe -ArgumentList \\\"-d\\\",\\\"%V.\\\" -Verb RunAs\""

[HKEY_CLASSES_ROOT\Directory\shell\wt]
@="Open Windows Terminal Here"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOT\Directory\shell\wt\command]
@="pwsh -windowstyle hidden -Command \"Start-Process wt.exe -ArgumentList \\\"-d\\\",\\\"%V.\\\"\""


[HKEY_CLASSES_ROOT\Directory\shell\wt_admin]
@="Open Windows Terminal Here as Admin"
"Icon"="cmd.exe"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Directory\shell\wt_admin\command]
@="pwsh -windowstyle hidden -Command \"Start-Process wt.exe -ArgumentList \\\"-d\\\",\\\"%V.\\\" -Verb RunAs\""

์—ฌ๊ธฐ์—์„œ ์•„์ด์ฝ˜์„ ๋‹ค์šด๋กœ๋“œํ•˜๊ณ  ๋‹ค์šด๋กœ๋“œ ๊ฒฝ๋กœ ( \ ์ด์Šค์ผ€์ดํ”„)๋ฅผ cmd.exe ๋ฐ”๊ฟ€ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
https://raw.githubusercontent.com/microsoft/terminal/master/res/terminal.ico

@aminya ๊ด€๋ฆฌ์ž ๋ชจ๋“œ๊ฐ€ ์ „ํ˜€ ์ž‘๋™ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. -windowstyle hidden ๋„ ๋ฌด์‹œ๋˜๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

@aminya ๊ด€๋ฆฌ์ž ๋ชจ๋“œ๊ฐ€ ์ „ํ˜€ ์ž‘๋™ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

explorer.exe๋ฅผ ๋‹ค์‹œ ์‹œ์ž‘ํ•ด์•ผ ํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.

-windowstyle hidden ๋„ ๋ฌด์‹œ๋˜๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

์ž ์‹œ ์ฐฝ์„ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.

์ผ๋ถ€ ๊ด€๋ฆฌ์ž ์Šคํฌ๋ฆฝํŠธ๊ฐ€ ์ €์—๊ฒŒ ์ž‘๋™ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ์ด์œ ๋Š” ๋ชจ๋ฅด๊ฒ ์ง€๋งŒ git bash (vscode์— open with vs code ์ง„์ž… ์ ์ด ํฉ์–ด์ ธ์žˆ๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ)๊ฐ€ ์ผ๋ถ€ ์†”๋ฃจ์…˜์—์„œ ์ œ๊ณตํ•˜๋Š” ๊ฒƒ๋ณด๋‹ค ๋” ๋งŽ์€ ๋ฉ”๋‰ด์— ํ‘œ์‹œ๋˜๋ฏ€๋กœ @OmegaRogue ์˜ ๋‹จ์ˆœํ™” ๋œ ๋ฒ„์ „์„ ๋งŒ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค.
์ œ์•ˆ ๋œ๋Œ€๋กœ "%USERPROFILE%\AppData\Local\Microsoft\WindowsApps\wt.exe" "-d" "." ๋ช…๋ น์œผ๋กœ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
https://gist.github.com/YoraiLevi/283532872b26b93e562b04812821db25

Windows Registry Editor Version 5.00

;drive
[HKEY_CLASSES_ROOT\Drive\shell\wt]
@="Open Windows Terminal Here"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOT\Drive\shell\wt\command]
@=hex(2):22,00,25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,4c,\
  00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,4c,00,\
  6f,00,63,00,61,00,6c,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,\
  00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,41,00,70,00,70,00,\
  73,00,5c,00,77,00,74,00,2e,00,65,00,78,00,65,00,22,00,20,00,22,00,2d,00,64,\
  00,22,00,20,00,22,00,2e,00,22,00,00,00
;end drive


;background 1
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\wt]
@="Open Windows Terminal Here"
"Icon"="cmd.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\wt\command]
@=hex(2):22,00,25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,4c,\
  00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,4c,00,\
  6f,00,63,00,61,00,6c,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,\
  00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,41,00,70,00,70,00,\
  73,00,5c,00,77,00,74,00,2e,00,65,00,78,00,65,00,22,00,20,00,22,00,2d,00,64,\
  00,22,00,20,00,22,00,2e,00,22,00,00,00
;end background 1

;libary folders, like what git does
[HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\wt]
@="Open Windows Terminal Here"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\wt\command]
@=hex(2):22,00,25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,4c,\
  00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,4c,00,\
  6f,00,63,00,61,00,6c,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,\
  00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,41,00,70,00,70,00,\
  73,00,5c,00,77,00,74,00,2e,00,65,00,78,00,65,00,22,00,20,00,22,00,2d,00,64,\
  00,22,00,20,00,22,00,2e,00,22,00,00,00
;end library folders 

;background 2
[HKEY_CLASSES_ROOT\Directory\background\shell\wt]
@="Open Windows Terminal Here"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOT\Directory\background\shell\wt\command]
@=hex(2):22,00,25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,4c,\
  00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,4c,00,\
  6f,00,63,00,61,00,6c,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,\
  00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,41,00,70,00,70,00,\
  73,00,5c,00,77,00,74,00,2e,00,65,00,78,00,65,00,22,00,20,00,22,00,2d,00,64,\
  00,22,00,20,00,22,00,2e,00,22,00,00,00
;end background 2

์ด ํŠœํ† ๋ฆฌ์–ผ์€ โžก๏ธ https://windowsloop.com/add-open-windows-terminal-here-option-to-right-click-menu/

์ƒํ™ฉ์— ๋งž๋Š” ๋ฉ”๋‰ด ํ•ญ๋ชฉ์„ ์„ค์น˜ / ์ œ๊ฑฐํ•˜๊ธฐ ์œ„ํ•ด ๋‘ ๊ฐœ์˜ PowerShell ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ƒ์„ฑํ•˜๊ณ  GitHub์—์„œ ๊ณต์œ ํ–ˆ์Šต๋‹ˆ๋‹ค.

https://github.com/lextm/windowsterminal-shell

๋กœ์ง์€ @ nerdio01์ด ์ œ์•ˆํ•œ ๊ฒƒ๊ณผ ๋น„์Šทํ•˜์ง€๋งŒ ๋ฉ”๋‰ด ๋ ˆ์ด์•„์›ƒ์ด ์•ฝ๊ฐ„ ๋‹ค๋ฆ…๋‹ˆ๋‹ค (์—…๋ฐ์ดํŠธ : ์ด์ œ ์—ฌ๋Ÿฌ ๋ ˆ์ด์•„์›ƒ์ด ์ง€์›๋จ).

image

install.ps1 ๋ฐ uninstall.ps1 ๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๋” ์ด์ƒ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ํ‚ค ํŒŒ์ผ์„ ๊ฐ€์ ธ์˜ฌ ํ•„์š”๊ฐ€ ์—†์œผ๋ฉฐ ์›ํ•˜์ง€ ์•Š๋Š” ๊ฒฝ์šฐ ์‚ญ์ œํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ๊ถ๊ธˆํ•ด ํ•  ํ•„์š”๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.

Pull ์š”์ฒญ์„ ํ™˜์˜ํ•ฉ๋‹ˆ๋‹ค.

์•„์ด์ฝ˜์ด ๋ฒ„์ „์ด ์ง€์ •๋œ ๊ฒฝ๋กœ์— ์žˆ๋‹ค๋Š” ์ ์ด ์•ฝ๊ฐ„ ์งœ์ฆ์ด๋‚ฉ๋‹ˆ๋‹ค. ๋‚ด ์•„์ด์ฝ˜์„ ๋ฐฐ์†กํ•˜๋Š” ๊ฒƒ ์™ธ์— ์ฐธ์กฐํ•˜๋Š” ๋” ์ข‹์€ ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๊นŒ?

๋‚ด๊ฐ€๋ณด๊ธฐ์— ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ๋ฅผ ์ˆ˜๋™์œผ๋กœ ํŽธ์ง‘ํ•ด์•ผํ•˜๋Š” ๊ฒƒ์€ ์ด์ƒ์ ์ธ ์†”๋ฃจ์…˜์ด ์•„๋‹™๋‹ˆ๋‹ค. ์ด ํ”„๋กœ์ ํŠธ์˜ ํŒ๋งค ํฌ์ธํŠธ ์ค‘ ์ผ๋ถ€๋Š” ์—ฌ๋Ÿฌ ์ข…๋ฅ˜์˜ ์…ธ (pwsh, cmd, ubuntu ๋“ฑ)์„ ์ง€์›ํ•˜๋ฉฐ์ด ๋ชฉ๋ก์€ ์‚ฌ์šฉ์ž๋งˆ๋‹ค ๋‹ค๋ฅผ ์ˆ˜ ์žˆ๋‹ค๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. ๊ณ ์ • ๋œ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ์Šคํฌ๋ฆฝํŠธ๋Š” ๊ทธ๊ฒƒ์„ ์ž๋ฅด์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
๋˜ํ•œ Windows ํ„ฐ๋ฏธ๋„์„ ์ œ๊ฑฐ ํ•  ๋•Œ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ์— ๋Œ€ํ•œ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์„ ์ˆ˜๋™์œผ๋กœ ์ œ๊ฑฐํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

์ด ๊ธฐ๋Šฅ์ด Windows ํ„ฐ๋ฏธ๋„ ์ž์ฒด์— ๊ตฌ์ถ•๋˜๋Š” ๊ฒƒ์„ ์ฐจ๋‹จํ•˜๋Š” ํŠน์ • ์„ค๊ณ„ / ๊ธฐ์ˆ ์  ๊ณ ๋ ค ์‚ฌํ•ญ / ์ œํ•œ ์‚ฌํ•ญ์ด ์žˆ์Šต๋‹ˆ๊นŒ? ์•„๋‹ˆ๋ฉด ์ธ๋ ฅ, ์šฐ์„  ์ˆœ์œ„ ๋ฐ ์‹œ๊ฐ„ ๋ฌธ์ œ์ž…๋‹ˆ๊นŒ?

์ธ๋ ฅ, ์šฐ์„  ์ˆœ์œ„ ๋ฐ ์‹œ๊ฐ„

ํ™•์‹คํžˆ ๊ทธ๊ฑฐ. ์—”์ง€๋‹ˆ์–ด๋ง ์‹œ๊ฐ„์ด ์ถฉ๋ถ„ํ•˜๋‹ค๋ฉด ํ”„๋กœํ•„์„ ๊ฐ์ง€ํ•˜์—ฌ ๋ฉ”๋‰ด์— ํ‘œ์‹œํ•˜๊ณ  ์ด๋ฏธ ์‹คํ–‰์ค‘์ธ ํ„ฐ๋ฏธ๋„ ์ธ์Šคํ„ด์Šค์—์„œ ์‰˜์„ ์ƒ์„ฑ ํ•  ์ˆ˜์žˆ๋Š” ์‹ค์ œ ์…ธ ํ™•์žฅ์„ ์ œ๊ณตํ•˜๊ณ  ์‹ถ์Šต๋‹ˆ๋‹ค.

์•ฝ๊ฐ„์˜ ์ƒ๊ฐ์„ํ•˜๊ฒŒ๋˜๋ฉด ์ด๊ฒƒ์— ์ ‘๊ทผํ•˜๋Š” ๋” ๊ฐ„๋‹จํ•œ ๋ฐฉ๋ฒ•์ด์žˆ์„ ๊ฒƒ์ด๋ผ๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค. ์ƒํ™ฉ์— ๋งž๋Š” ๋ฉ”๋‰ด์— ์ •์  ํ•ญ๋ชฉ์ด ํ•˜๋‚˜๋งŒ์žˆ๋Š” ๊ฒฝ์šฐ ํด๋ฆญํ•˜๋ฉด Windows ํ„ฐ๋ฏธ๋„์ด ์—ด๋ฆฌ๊ณ  ํ”„๋กœํ•„์„ ์„ ํƒํ•˜๋ผ๋Š” ๋ฉ”์‹œ์ง€๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.

์ด๋ ‡๊ฒŒํ•˜๋ฉด ๋™์  ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ํ‚ค ์ง‘ํ•ฉ์„ ์œ ์ง€ํ•  ํ•„์š”๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค. ๊ทธ๋ฆฌ๊ณ  ๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ ๋ฒ„ํŠผ์„ ํด๋ฆญ ํ•  ๋•Œ๋งˆ๋‹ค ์„ค์ • ํŒŒ์ผ์„ ๊ตฌ๋ฌธ ๋ถ„์„ํ•˜๊ณ  ํ”„๋กœํ•„ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์„ ํ™•์ธํ•  ํ•„์š”๊ฐ€ ์—†๋„๋ก ๋งŒ๋“œ์‹ญ์‹œ์˜ค.

์ด ํ”„๋กœ์ ํŠธ์˜ ์ฝ”๋“œ๋ฒ ์ด์Šค์— ์ต์ˆ™ํ•˜์ง€ ์•Š์•˜๊ธฐ ๋•Œ๋ฌธ์—์ด๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ๋ฐ ํ•„์š”ํ•œ ์ž‘์—…๋Ÿ‰์„ ์ค„์ผ ์ˆ˜ ์žˆ์„์ง€ ํ™•์‹  ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ ๊ทธ๊ฒƒ์— ๋Œ€ํ•œ ๋‹น์‹ ์˜ ์ƒ๊ฐ์„ ๋“ฃ๊ณ  ์‹ถ์Šต๋‹ˆ๋‹ค.

๋ชจ๋“  ํด๋”์˜ Windows ํƒ์ƒ‰๊ธฐ์—์„œ ์ฃผ์†Œ ํ‘œ์‹œ ์ค„์— wt๋ฅผ ์ž…๋ ฅํ•˜๊ณ  Enter ํ‚ค๋ฅผ ๋ˆ„๋ฆ…๋‹ˆ๋‹ค.

์‚ฌ๋žŒ์ด ์ž…๋ ฅ์˜ llevo3 ํŒ @ ์‹œ๋„ํ•˜๋Š” ๊ฒฝ์šฐ wt ์‚ฌ์šฉํ•˜๋ฉด ๊ฐ™์€ ๊ฒƒ ํƒ์ƒ‰๊ธฐ ์ฃผ์†Œ ํ‘œ์‹œ ์ค„์— cmd ๋‹น์‹ ์„ ์œ„ํ•ด ์ž‘๋™ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

๊ทธ๋Ÿฐ ๋‹ค์Œ PATH ํ™˜๊ฒฝ ๋ณ€์ˆ˜์— ๋‹ค์Œ์ด ์žˆ๋Š”์ง€ ํ™•์ธํ•˜์‹ญ์‹œ์˜ค.
%USERPROFILE%\AppData\Local\Microsoft\WindowsApps

๋ชจ๋“  ํด๋”์˜ Windows ํƒ์ƒ‰๊ธฐ์—์„œ ์ฃผ์†Œ ํ‘œ์‹œ ์ค„์— wt๋ฅผ ์ž…๋ ฅํ•˜๊ณ  Enter ํ‚ค๋ฅผ ๋ˆ„๋ฆ…๋‹ˆ๋‹ค.

@ llevo3 ํ˜„์žฌ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ Windows ํ„ฐ๋ฏธ๋„์„ ์—ด์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ์˜คํžˆ๋ ค ๊ธฐ๋ณธ ๋””๋ ‰ํ† ๋ฆฌ๋กœ ์—ด๋ฆฝ๋‹ˆ๋‹ค.

@abdulghanitech ์ด ๋งค์šฐ ๊ตฌ์ฒด์ ์ธ ๋ฌธ์ œ๋Š”์ด ์Šค๋ ˆ๋“œ์—์„œ 30 ๋ฒˆ ์ด์ƒ ๋…ผ์˜๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๐Ÿ˜„

๋ชจ๋“  ํด๋”์˜ Windows ํƒ์ƒ‰๊ธฐ์—์„œ ์ฃผ์†Œ ํ‘œ์‹œ ์ค„์— wt๋ฅผ ์ž…๋ ฅํ•˜๊ณ  Enter ํ‚ค๋ฅผ ๋ˆ„๋ฆ…๋‹ˆ๋‹ค.

@ llevo3 ํ˜„์žฌ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ Windows ํ„ฐ๋ฏธ๋„์„ ์—ด์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ์˜คํžˆ๋ ค ๊ธฐ๋ณธ ๋””๋ ‰ํ† ๋ฆฌ๋กœ ์—ด๋ฆฝ๋‹ˆ๋‹ค.

ํ˜„์žฌ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์—ด๋ ค๋ฉด ์ฃผ์†Œ ์•ž์— -d ์˜ต์…˜์„ ์‚ฌ์šฉํ•˜์‹ญ์‹œ์˜ค.
์ „์˜
wt -d [path you want to go]

๋ช…ํ™•ํžˆํ•˜๊ธฐ ์œ„ํ•ด wt -d . ์ž…๋ ฅํ•˜์—ฌ ํ˜„์žฌ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์—ด ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Q : wt -d . ํ„ฐ๋ฏธ๋„์ด ์—ด๋ฆฌ๋ฉด ์ƒˆ ํ„ฐ๋ฏธ๋„ ์ธ์Šคํ„ด์Šค (ํƒญ / ์ฐฝ)์— ๋™์ผํ•œ ๊ฒฝ๋กœ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜์žˆ๋Š” ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๊นŒ?

์ด๋ฅผ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ ์šฉํ•˜๊ธฐ์œ„ํ•œ ์†”๋ฃจ์…˜๊ณผ ๋‹ค์–‘ํ•œ ์ ‘๊ทผ ๋ฐฉ์‹์„ ์–ธ๊ธ‰ ํ•ด ์ฃผ์‹  ๋ชจ๋“  ๋ถ„๋“ค๊ป˜ ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค. ์ €๋Š” ์ฝ˜์†” 2์—์„œ ์ž‘๋™ํ•˜๋„๋กํ–ˆ์Šต๋‹ˆ๋‹ค. -d . ํ”Œ๋ž˜๊ทธ์™€ ํ•จ๊ป˜ "์—ฌ๊ธฐ์—์„œ ์—ด๊ธฐ"๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ์™„๋ฒฝํ•˜๊ฒŒ ์ž‘๋™ํ–ˆ์Šต๋‹ˆ๋‹ค.

์‹ค๋ก€ํ•ฉ๋‹ˆ๋‹ค. ์–ด๋–ป๊ฒŒ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

image

์•ผ, ์งˆ๋ฌธํ•˜๊ธฐ ์œ„ํ•ด ๊ด€๋ จ์—†๋Š” ์Šค๋ ˆ๋“œ์— ์˜ค์ง€ ๋งˆ์‹ญ์‹œ์˜ค. ์ƒˆ๋กœ์šด ๋ฒ„๊ทธ๋ฅผ ์ œ์ถœํ•˜๋ฉด ํŒ€์—์„œ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค ๐Ÿ˜„

@miniksa @ zadjii-msft @ DHowett-MSFT @factormystic @ChrisGuzak

์ด์ œ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ–ˆ์Šต๋‹ˆ๋‹ค. ์ข…๊ฒฐ ๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ํ† ๋ก ์— ์ฐธ์—ฌํ•ด ์ฃผ์‹  ๋ชจ๋“  ๋ถ„๋“ค๊ป˜ ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

0 ๋‹จ๊ณ„ :

์•„๋ž˜์˜ ๋‘ ๊ฐ€์ง€ ์ƒ์ˆ˜๊ฐ€ ์ž˜ ์ž‘๋™ํ•˜๋Š”์ง€ ํ…Œ์ŠคํŠธํ•˜์—ฌ ๋‹ค๋ฅธ ๋‹จ๊ณ„๋ฅผ ๋”ฐ๋ฅด๋Š” ๋ฐ ์‚ฌ์šฉ๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค.

echo %USERPROFILE%

echo %LOCALAPPDATA%

์—ฌ๊ธฐ์„œ ๋ชจ๋“  ๊ฒƒ์ด ์ž˜ ์ž‘๋™ํ•˜๋ฉด์ด ๋‘ ์ƒ์ˆ˜๋ฅผ ๋‹ค๋ฅธ ์•„๋ž˜ ๋‹จ๊ณ„์—์„œ ์ง์ ‘ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋˜๋Š” ์•„๋ž˜ ๋‹จ๊ณ„์—์„œ ๋‹ค์Œ ๊ต์ฒด๋ฅผ ์ˆ˜ํ–‰ํ•˜์‹ญ์‹œ์˜ค.

% USERPROFILE % โ†’ C:\Users\[userName]
% LOCALAPPDATA % โ†’ C:\Users\[userName]\AppData\Local

์—ฌ๊ธฐ์„œ [userName] ๋Š” ์‚ฌ์šฉ์ž ์ด๋ฆ„์„ ๋‚˜ํƒ€๋ƒ…๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, ๋‚ด ์ด๋ฆ„์€ Bruce ์ž…๋‹ˆ๋‹ค.

1 ๋‹จ๊ณ„:
CMD ์—์„œ ์•„๋ž˜ ํ•ญ๋ชฉ ์‹คํ–‰ :

mkdir "%USERPROFILE%\AppData\Local\terminal"

image

2 ๋‹จ๊ณ„:
Windows ํ„ฐ๋ฏธ๋„ ์•„์ด์ฝ˜์„ %USERPROFILE%\AppData\Local\terminal ํด๋”์— ๋ณต์‚ฌํ•ฉ๋‹ˆ๋‹ค. ์•„์ด์ฝ˜์€ https://github.com/yanglr/WindowsDevTools/tree/master/awosomeTerminal/icons ์—์„œ ์–ป์„ ์ˆ˜ ์žˆ์œผ๋ฉฐ ํŒŒ์ผ ์ด๋ฆ„์€ wt_32.ico .

3 ๋‹จ๊ณ„ :
๋‹ค์Œ ์ฝ˜ํ…์ธ ๋ฅผ wt.reg ๋กœ ์ €์žฅ ํ•œ ๋‹ค์Œ ๊ด€๋ฆฌ์ž๋กœ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Windows terminal here"
"Icon"="%USERPROFILE%\\AppData\\Local\\terminal\\wt_32.ico"

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="%LOCALAPPDATA%\\Microsoft\\WindowsApps\\wt.exe"

์ฐธ๊ณ ๋กœ , ์ง์ ‘ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•œ ํ›„ ์–ป์€ exe๊ฐ€ wtd.exe ์ธ ๊ฒฝ์šฐ ์œ„ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ์—์„œ ์œ„์˜ wt.exe ๋ฅผ wtd.exe ๋กœ ๋ณ€๊ฒฝํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

4 ๋‹จ๊ณ„ :
ํ…Œ์ŠคํŠธ
image

์ด ์†”๋ฃจ์…˜์— ๋ฌธ์ œ๊ฐ€์žˆ์—ˆ์Šต๋‹ˆ๋‹ค. ๋‹ค๋ฅธ ์‚ฌ๋žŒ์—๊ฒŒ ๋„์›€์ด ๋  ์ˆ˜์žˆ๋Š” ๊ฒฝ์šฐ ๊ถŒํ•œ ๋ฌธ์ œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.
๋ฐ”๊พธ๋‹ค
@="%LOCALAPPDATA%\\Microsoft\\WindowsApps\\wt.exe"
์™€
@="C:\\Users\\YOURUSERNAME\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe -d ."

๋‚ด ์ดํ•ด์—์„œ ๋ฐฑ๋ถ„์œจ ์ธ์ฝ”๋”ฉ ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋Š” ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ํ•ด์„๋˜๊ธฐ ์œ„ํ•ด ํ™•์žฅ ๊ฐ€๋Šฅํ•œ ๋ฌธ์ž์—ด ์œ ํ˜• ( REG_EXPAND_SZ )์„ ์‚ฌ์šฉํ•ด์•ผํ•˜๋ฏ€๋กœ ๋‹ค๋ฅธ ์†”๋ฃจ์…˜ ์ค‘ ์ผ๋ถ€๊ฐ€ ์™„์ „ํžˆ ์ž‘๋™ํ•˜์ง€ ์•Š๋Š”๋‹ค๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค 1 . ํ™•์žฅ ๊ฐ€๋Šฅํ•œ ๋ฌธ์ž์—ด์„ ์‚ฌ์šฉํ•˜๋Š” ์•„๋ž˜ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ๋งŒ๋“ค์—ˆ์œผ๋ฏ€๋กœ ์‚ฌ์šฉ์ž ์ด๋ฆ„์„ ๋ณ€๊ฒฝํ•  ํ•„์š”๋Š” ์—†์ง€๋งŒ ์•„์ด์ฝ˜ ๊ฒฝ๋กœ๋ฅผ ๋ณ€๊ฒฝํ•˜๊ณ  ์‹ถ์„ ๊ฒƒ์ž…๋‹ˆ๋‹ค .

๋˜ํ•œ ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์œผ๋กœ ์—ด๊ธฐ์œ„ํ•œ ์ž‘์—… / ์˜ต์…˜์„ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.

Windows Registry Editor Version 5.00

;Binary data is just UTF16 (LE) split every 2 bytes with a comma
;Conversion done with https://onlineutf8tools.com/convert-utf8-to-utf16?hex=true&little-endian=true&space=false&chain=split-string%253Fsplit-by-length%253Dtrue%2526separator%253D%252C

;User action
[HKEY_CLASSES_ROOT\Directory\Background\shell\WindowsTerminal]
@="Open Terminal here"
;"Icon"="%USERPROFILE%\Pictures\Icons\terminal.ico" (Location to ICO or comment out to hide icon)
"Icon"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,4c,00,45,00,25,00,5c,00,50,00,69,00,63,00,74,00,75,00,72,00,65,00,73,00,5c,00,49,00,63,00,6f,00,6e,00,73,00,5c,00,74,00,65,00,72,00,6d,00,69,00,6e,00,61,00,6c,00,2e,00,69,00,63,00,6f,00

;User action command
[HKEY_CLASSES_ROOT\Directory\Background\shell\WindowsTerminal\command]
;@="%LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe -d ."
@=hex(2):25,00,4c,00,4f,00,43,00,41,00,4c,00,41,00,50,00,50,00,44,00,41,00,54,00,41,00,25,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,41,00,70,00,70,00,73,00,5c,00,77,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,64,00,20,00,2e,00

;Admin action
[HKEY_CLASSES_ROOT\Directory\Background\shell\WindowsTerminalAdmin]
@="Open Terminal here (Admin)"
;Show the UAC shield on the action
"HasLUAShield"=""
;"Icon"="%USERPROFILE%\Pictures\Icons\terminal.ico" (Location to ICO or comment out to hide icon)
"Icon"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,4c,00,45,00,25,00,5c,00,50,00,69,00,63,00,74,00,75,00,72,00,65,00,73,00,5c,00,49,00,63,00,6f,00,6e,00,73,00,5c,00,74,00,65,00,72,00,6d,00,69,00,6e,00,61,00,6c,00,2e,00,69,00,63,00,6f,00

;Admin action command
[HKEY_CLASSES_ROOT\Directory\Background\shell\WindowsTerminalAdmin\command]
@="PowerShell -WindowStyle Hidden -Command \"Start-Process wt -ArgumentList '-d','.' -Verb runAs\""
  1. https://superuser.com/a/599025

๋‚ด ์ดํ•ด์—์„œ ํผ์„ผํŠธ๋กœ ์ธ์ฝ”๋”ฉ ๋œ ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋Š” ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ํ•ด์„๋˜๊ธฐ ์œ„ํ•ด ํ™•์žฅ ๊ฐ€๋Šฅํ•œ ๋ฌธ์ž์—ด ์œ ํ˜• ( REG_EXPAND_SZ )์„ ์‚ฌ์šฉํ•ด์•ผํ•˜๋ฏ€๋กœ ๋‹ค๋ฅธ ์†”๋ฃจ์…˜ ์ค‘ ์ผ๋ถ€๋Š” _ ์™„์ „ํžˆ ์ž‘๋™ํ•˜์ง€ ์•Š๋Š”๋‹ค๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค 1. ํ™•์žฅ ๊ฐ€๋Šฅํ•œ ๋ฌธ์ž์—ด์„ ์‚ฌ์šฉํ•˜๋Š” ์•„๋ž˜ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ๋งŒ๋“ค์—ˆ์œผ๋ฏ€๋กœ ์‚ฌ์šฉ์ž ์ด๋ฆ„์„ ๋ณ€๊ฒฝํ•  ํ•„์š”๋Š” ์—†์ง€๋งŒ ์•„์ด์ฝ˜ ๊ฒฝ๋กœ๋ฅผ ๋ณ€๊ฒฝํ•˜๊ณ  ์‹ถ์„ ๊ฒƒ์ž…๋‹ˆ๋‹ค .

๋˜ํ•œ ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์œผ๋กœ ์—ด๊ธฐ์œ„ํ•œ ์ž‘์—… / ์˜ต์…˜์„ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.

Windows Registry Editor Version 5.00

;Binary data is just UTF16 (LE) split every 2 bytes with a comma
;Conversion done with https://onlineutf8tools.com/convert-utf8-to-utf16?hex=true&little-endian=true&space=false&chain=split-string%253Fsplit-by-length%253Dtrue%2526separator%253D%252C

;User action
[HKEY_CLASSES_ROOT\Directory\Background\shell\WindowsTerminal]
@="Open Terminal here"
;"Icon"="%USERPROFILE%\Pictures\Icons\terminal.ico" (Location to ICO or comment out to hide icon)
"Icon"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,4c,00,45,00,25,00,5c,00,50,00,69,00,63,00,74,00,75,00,72,00,65,00,73,00,5c,00,49,00,63,00,6f,00,6e,00,73,00,5c,00,74,00,65,00,72,00,6d,00,69,00,6e,00,61,00,6c,00,2e,00,69,00,63,00,6f,00

;User action command
[HKEY_CLASSES_ROOT\Directory\Background\shell\WindowsTerminal\command]
;@="%LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe -d ."
@=hex(2):25,00,4c,00,4f,00,43,00,41,00,4c,00,41,00,50,00,50,00,44,00,41,00,54,00,41,00,25,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,41,00,70,00,70,00,73,00,5c,00,77,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,64,00,20,00,2e,00

;Admin action
[HKEY_CLASSES_ROOT\Directory\Background\shell\WindowsTerminalAdmin]
@="Open Terminal here (Admin)"
;Show the UAC shield on the action
"HasLUAShield"=""
;"Icon"="%USERPROFILE%\Pictures\Icons\terminal.ico" (Location to ICO or comment out to hide icon)
"Icon"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,4c,00,45,00,25,00,5c,00,50,00,69,00,63,00,74,00,75,00,72,00,65,00,73,00,5c,00,49,00,63,00,6f,00,6e,00,73,00,5c,00,74,00,65,00,72,00,6d,00,69,00,6e,00,61,00,6c,00,2e,00,69,00,63,00,6f,00

;Admin action command
[HKEY_CLASSES_ROOT\Directory\Background\shell\WindowsTerminalAdmin\command]
@="PowerShell -WindowStyle Hidden -Command \"Start-Process wt -ArgumentList '-d','.' -Verb runAs\""
  1. https://superuser.com/a/599025

๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. ์Šน๊ฒฉ ๋œ ๋ฐฉ์‹์œผ๋กœ ์‹œ์ž‘ํ•  ๋•Œ Windows PowerShell ์ฐฝ์ด ๋‚˜ํƒ€๋‚˜๊ธฐ ๋•Œ๋ฌธ์— ์ด๊ฒƒ์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ์ด๊ฒƒ์— ๋Œ€ํ•ด ๋” ์ž์„ธํžˆ ์‚ดํŽด๋ณผ ์ˆ˜ ์žˆ์—ˆ๊ณ  ์‰ฌ์šด ์„ค์น˜ ์Šคํฌ๋ฆฝํŠธ๋กœ ๋‚ด ์ž์‹ ์˜ ์ €์žฅ์†Œ ๋ฅผ ๋งŒ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค. Windows ํ„ฐ๋ฏธ๋„์— ๋Œ€ํ•œ ์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด ํ•ญ๋ชฉ์„ ์›ํ•˜๋Š” ๋‹ค๋ฅธ ์‚ฌ๋žŒ.

์ด ๊ธด ์Šค๋ ˆ๋“œ์˜ ๋ฏธ๋ž˜ ๋…์ž๋ฅผ ์œ„ํ•ด,

  • Microsoft๋Š” ์ž์ฒด Windows ํƒ์ƒ‰๊ธฐ ์ƒํ™ฉ์— ๋งž๋Š” ๋ฉ”๋‰ด ํ•ญ๋ชฉ์„ ํฌํ•จํ•˜๊ธฐ๋กœ ๊ฒฐ์ •ํ–ˆ์Šต๋‹ˆ๋‹ค. ์ด๊ฒƒ์ด์ด ๋ฌธ์ œ๊ฐ€ ์ข…๊ฒฐ ๋œ ์ด์œ ์ž…๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ๋ฆด๋ฆฌ์Šค ์ฃผ๊ธฐ๋กœ ์ธํ•ด ๋ช‡ ์ฃผ (๋˜๋Š” ๋ช‡ ๋‹ฌ) ์•ˆ์— Windows 10 ์šฉ Microsoft Store๋ฅผ ํ†ตํ•ด ์ปดํ“จํ„ฐ์— ์ €์žฅ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ์ง€๊ธˆ๊นŒ์ง€ ๋ช‡ ๊ฐ€์ง€ ํ•ต์‹ฌ ๊ธฐ๋Šฅ์ด์žˆ๋Š” ๊ฐ„๋‹จํ•œ ์…ธ ํ™•์žฅ์„ ๊ฐœ๋ฐœํ–ˆ์Šต๋‹ˆ๋‹ค.
  • ์ง€๊ธˆ ์ƒํ™ฉ์— ๋งž๋Š” ๋ฉ”๋‰ด๊ฐ€ ์ •๋ง๋กœ ํ•„์š”ํ•œ ๊ฒฝ์šฐ์ด ๊ธด ์Šค๋ ˆ๋“œ์˜ ๋ฐฉ๋ฒ• ์ค‘ ํ•˜๋‚˜๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ด๋Ÿฌํ•œ ๋ฉ”๋‰ด ํ•ญ๋ชฉ์„ ์ง์ ‘ ์ถ”๊ฐ€ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค. ์š”์•ฝ,

    • ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ํ‚ค๋ฅผ ๊ฐ€์ ธ์˜ต๋‹ˆ๋‹ค.
    • ์ผ๋ถ€ ๋ฐฐ์น˜ ํŒŒ์ผ์„ ์‚ฌ์šฉํ•˜์‹ญ์‹œ์˜ค. (๋“ฑ ์ด )
    • ์ผ๋ถ€ PowerShell ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. (๋“ฑ ์ด )

๋ฌด์—‡์„ ์„ ํƒํ•˜๋“  ํ•ด๋‹น ์ €์žฅ์†Œ์˜ ์†Œ์œ ์ž์—๊ฒŒ ๋ฌธ์ œ๋ฅผ๋ณด๊ณ ํ•˜๋ฉด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

  • ๊ทธ๋Ÿฌ๋‚˜ ๋ฆด๋ฆฌ์Šค ์ฃผ๊ธฐ๋กœ ์ธํ•ด ๋ช‡ ์ฃผ (๋˜๋Š” ๋ช‡ ๋‹ฌ) ์•ˆ์— Windows 10 ์šฉ Microsoft Store๋ฅผ ํ†ตํ•ด ์ปดํ“จํ„ฐ์— ์ €์žฅ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

์˜ค, ํ™•์‹คํžˆ ๋ช‡ ๋‹ฌ๋ณด๋‹ค ๋น ๋ฅผ ๊ฒƒ์ž…๋‹ˆ๋‹ค ๐Ÿ˜‰

: tada :์ด ๋ฌธ์ œ๋Š” # 6100์—์„œ ํ•ด๊ฒฐ๋˜์—ˆ์œผ๋ฉฐ ์ด์ œ Windows Terminal Preview v1.1.1671.0 . : tada :

ํŽธ๋ฆฌํ•œ ๋งํฌ :

Windows Terminal Preview (https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)์— ๋Œ€ํ•œ Store Download ๋งํฌ๊ฐ€ ์•ˆ ๋˜๋‚˜์š”? ๐Ÿค”

@DHowett ์˜ค, ์šฐ๋ฆฌ๋Š” ๋ด‡์„ ์—…๋ฐ์ดํŠธํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค

๋ฐ”๋‹๋ผ ๋ฒ„์ „์—๋Š” ์ƒ์Šน ๋œ ์˜ต์…˜์ด ํฌํ•จ๋˜์–ด ์žˆ์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์— ์ง€๊ธˆ์€ ์—ฌ์ „ํžˆ โ€‹โ€‹๋ฐฐ์น˜ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๊ณ ์žˆ๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ๋ˆ„๊ฐ€ ํ’€ ๋ฆฌํ€˜์ŠคํŠธ๋ฅผ ์ œ์ถœํ–ˆ๋Š”์ง€!

ํ—ˆ, ์šฐ๋ฆฌ๋Š” ์ ˆ๋Œ€์ ์œผ๋กœ ๋ด‡์„ ์—…๋ฐ์ดํŠธํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค. Lol.

์ฃผ์ œ๋ฅผ ๋ฒ—์–ด๋‚œ ๋ฉ”์‹œ์ง€์— ๋Œ€ํ•ด ์ฃ„์†กํ•ฉ๋‹ˆ๋‹ค. ๋ฆด๋ฆฌ์Šค ๋ฒ„์ „๊ณผ ๋ฏธ๋ฆฌ๋ณด๊ธฐ ๋ฒ„์ „์„ ๋ชจ๋‘ ์„ค์น˜ ํ•œ ๊ฒฝ์šฐ wt๋ฅผ ์‹คํ–‰ํ•  ๋•Œ ํ˜ธ์ถœ๋ฉ๋‹ˆ๋‹ค.

Windows ์„ค์ •์—์„œ ์•ฑ ์‹คํ–‰ ๋ณ„์นญ์— ์„ค์ • ํ•œ ๋‚ด์šฉ์„ ์ถ”์ธก ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
image

๋„ค.

์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด์—๋„ ํ„ฐ๋ฏธ๋„ ์•„์ด์ฝ˜์ด ํฌํ•จ๋˜์–ด ์žˆ์œผ๋ฉด ์ข‹์„ ๊ฒƒ์ž…๋‹ˆ๋‹ค.

์ปจํ…์ŠคํŠธ ๋ฉ”๋‰ด์—๋„ ํ„ฐ๋ฏธ๋„ ์•„์ด์ฝ˜์ด ํฌํ•จ๋˜์–ด ์žˆ์œผ๋ฉด ์ข‹์„ ๊ฒƒ์ž…๋‹ˆ๋‹ค.

์•ˆ๋…• wadda ์•„์‹œ๋‹ค์‹œํ”ผ, ๊ทธ๊ฒƒ์€ # 6246์ž…๋‹ˆ๋‹ค.

์ด ๋ฌธ์ œ์— ๋Œ€ํ•œ ๋‹ค๋ฅธ ๋ชจ๋“  ์‚ฌ๋žŒ๋“ค ( 111 ๋ช… ๋ชจ๋‘)์˜ ์‚ฌ๋ž‘์„ ์œ„ํ•ด ๋‹ค์Œ ๋ฌธ์ œ๋ฅผ ํ™•์ธํ•˜์‹ญ์‹œ์˜ค.
https://github.com/microsoft/terminal/issues?q=is%3Aopen+is%3Aissue+label%3AArea-ShellExtension

"๋‚จ์ž๋Š” ์ƒํ™ฉ์— ๋งž๋Š” ๋ฉ”๋‰ด๊ฐ€ ..."

Store Download ๋งํฌ๊ฐ€ Windows Terminal Preview ( microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge )์— ์—ฐ๊ฒฐ๋˜์–ด์•ผํ•˜์ง€ ์•Š์Šต๋‹ˆ๊นŒ? ๐Ÿค”

@DHowett ์˜ค, ์šฐ๋ฆฌ๋Š” ๋ด‡์„ ์—…๋ฐ์ดํŠธํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค

ํ—ˆ, ์šฐ๋ฆฌ๋Š” ์ ˆ๋Œ€์ ์œผ๋กœ ๋ด‡์„ ์—…๋ฐ์ดํŠธํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค. Lol.

์•Œ์•˜๋‹ค.

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰