While paging through the results of executing git diff
, I hear annoying beep sound when I get to the end or beginning of the diff results. I would like to know how I can disable this alarm bell?
I am running msysGit on Windows XP.
You can turn off that annoying beep for all Windows apps using:
net stop beep
By default, msysGit uses less
as the pager when running diff
s. In order to disable less
' bell sound, the command line option -q needs to be supplied to it. This can be accomplished by modifying the git
configuration for your user account or the project. Add the following to the configuration file:
[core]
pager = less -q
The location of your user accounts git configuration file is ~/.gitconfig. In Windows speak, that is %userprofile%/.gitconfig
.
-- Anwser provided by the OP, Mario
You do not tell what you are paging with but let me guess it is less
, and that is less that actually produces the bell. You can start less with the --quiet
or --silent
options to avoid (or sett the LESS
environmental variable).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With