From de801466c69e2e3e15158925423e9328da521d8f Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Thu, 8 Mar 2018 07:34:15 +0200 Subject: [PATCH] Fallback to bell when notify-send is not present. --- .bashrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.bashrc b/.bashrc index 1738b45..a2bac63 100644 --- a/.bashrc +++ b/.bashrc @@ -96,6 +96,7 @@ alias http-server='python3 -m http.server 8080' alias dd='monitor dd status=progress' alias screenshot-cleanup='find "$HOME/Pictures" -name "Screenshot from *.png" -delete' alias bell='printf \a' +command -v notify-send > /dev/null || alias notify-send='bell' monitor () { eval "$@" && notify-send "${1#__} has finished." || notify-send --urgency=critical "${1#__} has failed." -- GitLab