It's working for me.

Code: Select all
$command && notify-send "Done!"
Code: Select all
$command && notify-send "Done!" || notify-send "Oh no! Something went wrong :-("
Code: Select all
function notify-me {
"$@" && notify-send "Done!" || notify-send "Oh no! Something went wrong :-("
}
Code: Select all
notify-me $command