diff --git a/bin/notify b/bin/notify new file mode 100755 index 0000000..168d697 --- /dev/null +++ b/bin/notify @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +set -o nounset + +cmd="${@}" +name="${1}" + +${cmd[@]} + +exit_code="$?" + +notify-send "Command \"${name}\" finished" "Exit code: ${exit_code}\nFull command: ${cmd}"