added sound effect for git checkout

This commit is contained in:
pagedmov
2024-11-01 15:23:01 -04:00
parent 7bee6ebce5
commit 8ef1af3f20
2 changed files with 10 additions and 0 deletions

View File

@@ -54,6 +54,7 @@
#git
"ga" = "playshellsound ${self}/assets/sound/gitadd.wav; git add";
gco = "gitcheckout_sfx";
gcomm = "gitcommit_sfx";
gpush = "gitpush_sfx";
gpull = "gitpull_sfx";
@@ -71,6 +72,15 @@
runbg aplay "$1"
fi
}
gitcheckout_sfx() {
if git checkout "$@"; then
playshellsound ${self}/assets/sound/gitcheckout.wav
return 0
else
playshellsound ${self}/assets/sound/error.wav
return 1
fi
}
gitrebase_sfx() {
if git rebase "$@"; then
playshellsound ${self}/assets/sound/gitrebase.wav