Created
April 22, 2020 09:13
-
-
Save adidonato/2fa920f76c55554245bf0aca77ae9cde to your computer and use it in GitHub Desktop.
Say "Done" or "Failed" when process ends
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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