From a38762208ae4891905c8322fd7d732412a396aff Mon Sep 17 00:00:00 2001 From: Carsten Reitz Date: Thu, 9 Jun 2022 15:20:30 +0200 Subject: [PATCH] #692 Improve Windows Terminal with gitbash #692 Improve Windows Terminal with gitbash --- documentation/advanced-tooling-windows.asciidoc | 1 + scripts/src/main/resources/setup.bat | 1 + .../resources/system/windows/devon-uninstall.reg | 6 +++++- .../devon-wt-gitbash-uninstall.reg | 6 ++++++ .../windows-terminal/devon-wt-gitbash.reg | Bin 0 -> 1712 bytes .../system/windows/windows-terminal/install.bat | 1 + .../windows/windows-terminal/uninstall.bat | 3 ++- 7 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 scripts/src/main/resources/system/windows/windows-terminal/devon-wt-gitbash-uninstall.reg create mode 100644 scripts/src/main/resources/system/windows/windows-terminal/devon-wt-gitbash.reg diff --git a/documentation/advanced-tooling-windows.asciidoc b/documentation/advanced-tooling-windows.asciidoc index a191a4d3e..8efc9f7b6 100644 --- a/documentation/advanced-tooling-windows.asciidoc +++ b/documentation/advanced-tooling-windows.asciidoc @@ -23,6 +23,7 @@ Just right-click on the folder you would like to open in a terminal and choose f * 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) +* Open devonfw gitbash 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: diff --git a/scripts/src/main/resources/setup.bat b/scripts/src/main/resources/setup.bat index 4953f1326..e3819578b 100644 --- a/scripts/src/main/resources/setup.bat +++ b/scripts/src/main/resources/setup.bat @@ -10,6 +10,7 @@ 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 + reg import system/windows/wt-cmd/devon-wt-gitbash.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 diff --git a/scripts/src/main/resources/system/windows/devon-uninstall.reg b/scripts/src/main/resources/system/windows/devon-uninstall.reg index 89708b8e2..5b2c7bde2 100644 --- a/scripts/src/main/resources/system/windows/devon-uninstall.reg +++ b/scripts/src/main/resources/system/windows/devon-uninstall.reg @@ -11,4 +11,8 @@ 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] \ No newline at end of file +[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell\devon_wt_cmd\command] +[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell\devon_wt_gitbash] +[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell\devon_wt_gitbash\command] +[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell\devon_wt_gitbash] +[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell\devon_wt_gitbash\command] diff --git a/scripts/src/main/resources/system/windows/windows-terminal/devon-wt-gitbash-uninstall.reg b/scripts/src/main/resources/system/windows/windows-terminal/devon-wt-gitbash-uninstall.reg new file mode 100644 index 000000000..433db79a7 --- /dev/null +++ b/scripts/src/main/resources/system/windows/windows-terminal/devon-wt-gitbash-uninstall.reg @@ -0,0 +1,6 @@ +Windows Registry Editor Version 5.00 + +[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell\devon_wt_gitbash] +[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell\devon_wt_gitbash\command] +[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell\devon_wt_gitbash] +[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell\devon_wt_gitbash\command] diff --git a/scripts/src/main/resources/system/windows/windows-terminal/devon-wt-gitbash.reg b/scripts/src/main/resources/system/windows/windows-terminal/devon-wt-gitbash.reg new file mode 100644 index 0000000000000000000000000000000000000000..4125596951d09632568ec280ff51fcbc6189255f GIT binary patch literal 1712 zcmd5-YfI!n5UkIF{~`EEVeim5ncN8nz7+(8^~GTh@pRP%b!D^o`15Mb#H4Fr{Vrj% zGdU6@Bk;LEM`7H9a<&Va)aA zXXaPhYTVLt$EPBv0iGg= zjLg~`8P7sYs?ZOz4hr1I(+hIRVnpCN_w7`usNaZO?^$2yvZ)fPe8D_&EMSH29KG1b z9#=)TE|T?fXLpI+VhdulIE7$3Tz7T{->s{tSVj#Ues@+!)-8%=N|~w8Qs-X^16@02 zXfZw1f4aSh9E@L>@g6ZOtCyNQOdCb_;@=>)I9I~PDp#CR^wV6WQ)8? z$}boU#ID*{2TO@nHZIXM=wUmCmAGW)^p@y+o8HDx Xvnrx8_A-m9k9AXTSW|O&w_leJg`v%D literal 0 HcmV?d00001 diff --git a/scripts/src/main/resources/system/windows/windows-terminal/install.bat b/scripts/src/main/resources/system/windows/windows-terminal/install.bat index 897982422..6930c486c 100644 --- a/scripts/src/main/resources/system/windows/windows-terminal/install.bat +++ b/scripts/src/main/resources/system/windows/windows-terminal/install.bat @@ -1 +1,2 @@ regedit.exe /S devon-wt-cmd.reg +regedit.exe /S devon-wt-gitbash.reg diff --git a/scripts/src/main/resources/system/windows/windows-terminal/uninstall.bat b/scripts/src/main/resources/system/windows/windows-terminal/uninstall.bat index d7480286c..2f5c5f89c 100644 --- a/scripts/src/main/resources/system/windows/windows-terminal/uninstall.bat +++ b/scripts/src/main/resources/system/windows/windows-terminal/uninstall.bat @@ -1 +1,2 @@ -regedit.exe /S devon-wt-cmd-uninstall.reg \ No newline at end of file +regedit.exe /S devon-wt-cmd-uninstall.reg +regedit.exe /S devon-wt-gitbash-uninstall.reg