This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo You must add "startingDirectory": "." to your Windows Terminal profile ^ | |
settings or this will not work. | |
echo( | |
set winterm_path="\"%LocalAppData%\Microsoft\WindowsApps\wt.exe\"" | |
reg add HKCR\Directory\Background\shell\winterm\command | |
reg add HKCR\Directory\Background\shell\winterm\command /ve /t REG_EXPAND_SZ /d %winterm_path% | |
reg add HKCR\Directory\Background\shell\winterm\ /ve /t REG_EXPAND_SZ /d "Open Windows Terminal here" |