Skip to content

Instantly share code, notes, and snippets.

@adidonato
Created April 22, 2020 09:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adidonato/2fa920f76c55554245bf0aca77ae9cde to your computer and use it in GitHub Desktop.
Save adidonato/2fa920f76c55554245bf0aca77ae9cde to your computer and use it in GitHub Desktop.
Say "Done" or "Failed" when process ends
function status_say () {
echo "EXECUTING: " "$@" "& saying 'done' or 'failed'"
bash -c " $@ && say '$@ is done' || say '$@ has failed' " || echo "Quote the command to be executed status_say `command arg1 arg2`"
}
# add to .bashrc / source
# example: status_say "make install"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment