Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#786 Improve Windows Terminal with powershell #853

Merged
merged 6 commits into from
Aug 29, 2022
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions documentation/advanced-tooling-windows.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Just right-click on the folder you would like to open in a terminal and choose f
* 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)
* Open devonfw PowerShell in Windows Terminal here (only if Windows Terminal is installed on the system)


== Tabs everywhere
Expand Down
1 change: 1 addition & 0 deletions scripts/src/main/resources/setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dir %USERPROFILE%\AppData\Local\Microsoft\WindowsApps\wt.exe >NUL 2>NUL
if "%ERRORLEVEL%" == "0" (
reg import system/windows/windows-terminal/devon-wt-cmd.reg
reg import system/windows/windows-terminal/devon-wt-gitbash.reg
reg import system/windows/windows-terminal/devon-wt-ps.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
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 @@ -16,4 +16,8 @@ Windows Registry Editor Version 5.00
[-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]
[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell\devon_wt_ps]
[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell\devon_wt_ps\command]
[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell\devon_wt_ps]
[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell\devon_wt_ps\command]

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
regedit.exe /S devon-wt-cmd.reg
regedit.exe /S devon-wt-gitbash.reg
regedit.exe /S devon-wt-ps.reg

Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
regedit.exe /S devon-wt-cmd-uninstall.reg
regedit.exe /S devon-wt-gitbash-uninstall.reg
regedit.exe /S devon-wt-ps-uninstall.reg