Skip to content

Instantly share code, notes, and snippets.

@hiDominik
hiDominik / zshrc
Created January 31, 2024 08:59
For long running scripts, let your Mac tell you when its done. Add the code snippet to your .zshrc file and use it in terminal commands like 'sh script.sh; notify'
notify() {
if [[ $? = 0 ]]; then
say terminal command finished successfully
else
say terminal command failed
fi
}