Skip to content

Commit

Permalink
#701: Support for Windows Terminal (#725)
Browse files Browse the repository at this point in the history
  • Loading branch information
CREITZ25 authored May 23, 2022
1 parent 0bf3e8e commit 74a3f3e
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions documentation/advanced-tooling-windows.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Just right-click on the folder you would like to open in a terminal and choose f
* Open devonfw cmd shell here
* Open devonfw PowerShell here
* Open devonfw Cygwin Bash here (only if cygwin was installed during setup)
* Open devonfw cmd shell in Windows Terminal here (only if Windows Terminal is installed on the system)

== Tabs everywhere
Many people got used to _tabs_ that have been introduced by all major browsers:
Expand Down
5 changes: 5 additions & 0 deletions scripts/src/main/resources/setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ call scripts\devon.bat ide setup %*
reg import system/windows/cmd/devon-cmd.reg
reg import system/windows/power-shell/devon-power-shell.reg

dir %USERPROFILE%\AppData\Local\Microsoft\WindowsApps\wt.exe >NUL 2>NUL
if "%ERRORLEVEL%" == "0" (
reg import system/windows/wt-cmd/devon-wt-cmd.reg
)

for /F "usebackq tokens=2*" %%O in (`call "%SystemRoot%"\system32\reg.exe query "HKLM\Software\Cygwin\setup" /v "rootdir" 2^>nul ^| "%SystemRoot%\system32\findstr.exe" REG_SZ`) do set CYGWIN_HOME=%%P
if exist "%CYGWIN_HOME%\bin\bash.exe" (
reg import system/windows/cygwin/devon-cygwin.reg
Expand Down
4 changes: 4 additions & 0 deletions scripts/src/main/resources/system/windows/devon-uninstall.reg
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ Windows Registry Editor Version 5.00
[-HKEY_CURRENT_USER\Software\Classes\Directory\shell\devon_cygwin\command]
[-HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\devon_cygwin]
[-HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\devon_cygwin\command]
[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell\devon_wt_cmd]
[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell\devon_wt_cmd\command]
[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell\devon_wt_cmd]
[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell\devon_wt_cmd\command]
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell\devon_wt_cmd]
[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell\devon_wt_cmd\command]
[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell\devon_wt_cmd]
[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell\devon_wt_cmd\command]
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
regedit.exe /S devon-wt-cmd.reg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
regedit.exe /S devon-wt-cmd-uninstall.reg

0 comments on commit 74a3f3e

Please sign in to comment.