Then I run run_sentry $APP where $APP is an key in the targets object in the project’s shard.yml. You can add your sound player after the build command.
2. write a bash script use inotifywait for monitor the file touched in my local laptop, like this: (i write it in the .rvmrc, which will run automatically when i entering my project
if which inotifywait &>/dev/null && ! pgrep inotifywait &>/dev/null; then
touch tmp/.success tmp/.error
(
while inotifywait -qq -e attrib tmp/.success
do
aplay ~/Crystal/git/sentry/src/sounds/success.wav 2>/dev/null
done
)&
(
while inotifywait -qq -e attrib tmp/.error
do
aplay ~/Crystal/git/sentry/src/sounds/error.wav 2>/dev/null
done
)&
fi
Thanks a lot.
You can install inotifywait use pacman -S inotify-tools in Arch.