pengwin-setup icon indicating copy to clipboard operation
pengwin-setup copied to clipboard

Add Windows Terminal shell integration installer

Open Copilot opened this issue 3 months ago • 10 comments

  • [x] Create installer script pengwin-setup.d/shell-integration.sh for Windows Terminal shell integration
  • [x] Add menu entry in pengwin-setup.d/shells.sh for the new installer
  • [x] Create uninstaller script pengwin-setup.d/uninstall/shell-integration.sh
  • [x] Add uninstall menu entry in pengwin-setup.d/uninstall.sh
  • [x] Update bash completions in completions/pengwin-setup
  • [x] Create unit test tests/shell-integration.sh
  • [x] Add test to tests/run_tests.sh
  • [x] Add missing PS0 for command executed mark (133;C)
  • [x] Move shell integration script to /usr/local/share/pengwin/wt-shell-integration.sh
  • [x] Use sudo_rem_file helper function in uninstaller
  • [x] Add enable_should_restart to signal distro restart after installation
  • [x] Fix PS0 command substitution syntax
  • [x] Fix: Preserve command-start OSC marker (133;B) in prompt updates
Original prompt

windows terminal shell integration need a modification in the prompt. but in debian as the prompt is defined in .bashrc it is not possible to change it in /etc/profile.d the only way is to add changes in .bashrc. The original script is the following: https://github.com/WhitewaterFoundry/pengwin-enterprise-rootfs-builds/blob/main/linux_files/bash-prompt-wsl.sh

create a new installer in pengwin-setup in the shells section to install the windows terminal shell integration: for reference: https://learn.microsoft.com/en-us/windows/terminal/tutorials/shell-integration

the installer will add a modification to .bashrc with marks to be able to do an uninstall if the user decides to


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot avatar Nov 26 '25 11:11 Copilot