You are not logged in.

#1 2022-03-08 12:44:03

qu@rk
Member
Registered: 2021-07-28
Posts: 149

sound after console command is finished

Is there a way to add a sort of "bing" sound after a console command is done? I never really thought about it but would be useful

Offline

#2 2022-03-08 13:39:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,041

Re: sound after console command is finished

Have "\a" in your prompt?
You can also have more elaborate stuff like

[ $? = 0 ] && aplay -q ~/.local/share/sounds/tada.wav || aplay -q ~/.local/share/sounds/notify.wav

eg. in zsh using the precmd() function.

Offline

Board footer

Powered by FluxBB