added sound effect for git checkout
This commit is contained in:
BIN
assets/sound/gitcheckout.wav
Normal file
BIN
assets/sound/gitcheckout.wav
Normal file
Binary file not shown.
@@ -54,6 +54,7 @@
|
|||||||
|
|
||||||
#git
|
#git
|
||||||
"ga" = "playshellsound ${self}/assets/sound/gitadd.wav; git add";
|
"ga" = "playshellsound ${self}/assets/sound/gitadd.wav; git add";
|
||||||
|
gco = "gitcheckout_sfx";
|
||||||
gcomm = "gitcommit_sfx";
|
gcomm = "gitcommit_sfx";
|
||||||
gpush = "gitpush_sfx";
|
gpush = "gitpush_sfx";
|
||||||
gpull = "gitpull_sfx";
|
gpull = "gitpull_sfx";
|
||||||
@@ -71,6 +72,15 @@
|
|||||||
runbg aplay "$1"
|
runbg aplay "$1"
|
||||||
fi
|
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() {
|
gitrebase_sfx() {
|
||||||
if git rebase "$@"; then
|
if git rebase "$@"; then
|
||||||
playshellsound ${self}/assets/sound/gitrebase.wav
|
playshellsound ${self}/assets/sound/gitrebase.wav
|
||||||
|
|||||||
Reference in New Issue
Block a user