Bell sound on git hooks scripts not working #15172

Open
opened 2026-01-31 04:30:35 +00:00 by claunia · 0 comments
Owner

Originally created by @KeterSCP on GitHub (Sep 11, 2021).

Windows Terminal version (or Windows build number)

1.10.2383.0

Other Software

git 2.31.1.windows.1

Steps to reproduce

  1. Enable Audible bell notification style for the powershell or cmd profile in the windows terminal.
  2. Create an empty repo.
  3. In .git/hooks folder add post-checkout file with following content:
#!/bin/bash                                                                      

tput setaf 1 # set red foreground

echo 'Here the bell sound should appear'

tput bel # make a sound

tput sgr0 # reset
  1. Add a dummy file and commit it to initialize the branch.
  2. Open repo folder in powershell or cmd profile in windows terminal.
  3. Execute git checkout command

Expected Behavior

The bell should be triggered

Actual Behavior

Bell is not triggered.

When repeating mentioned steps from windows powershell or cmd (not from the windows terminal), the bell is being triggered.
bell-issue

Originally created by @KeterSCP on GitHub (Sep 11, 2021). ### Windows Terminal version (or Windows build number) 1.10.2383.0 ### Other Software git 2.31.1.windows.1 ### Steps to reproduce 1. Enable Audible bell notification style for the powershell or cmd profile in the windows terminal. 2. Create an empty repo. 3. In .git/hooks folder add `post-checkout` file with following content: ``` #!/bin/bash tput setaf 1 # set red foreground echo 'Here the bell sound should appear' tput bel # make a sound tput sgr0 # reset ``` 4. Add a dummy file and commit it to initialize the branch. 5. Open repo folder in powershell or cmd profile in windows terminal. 6. Execute `git checkout` command ### Expected Behavior The bell should be triggered ### Actual Behavior Bell is not triggered. When repeating mentioned steps from windows powershell or cmd (not from the windows terminal), the bell is being triggered. ![bell-issue](https://user-images.githubusercontent.com/38229504/132950433-cca47ba4-4f14-487e-baaf-162fdeec0152.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15172