I use the shell Git for Windows Bash on Windows 10 and I want to play a sound whenever my command prompt is ready. This acoustic feedback should help me to get (back) to my command line when my Terminal window is fully initialized or a command finished executing.
This is my current .bash_profile line:
export PROMPT_COMMAND='history -a && powershell -c "(New-Object Media.SoundPlayer C:/Windows/Media/chimes.wav).PlaySync();"'
- The history command is not relevant and comes from here.
- The powershell command comes from here. It does basically work, but it's sync and delays my command prompt loading.
How can I make this async? I tried nohup and & but those did not work here. Docs mention method Play, but this doesn't create a sound at all.