Last active
October 20, 2015 10:30
-
-
Save placek/0098fbbb927907688db2 to your computer and use it in GitHub Desktop.
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 ensure { | |
if [[ $? -eq 0 ]]; then | |
/usr/bin/osascript -e 'display notification "Zajebiście kurwa - działa!"' | |
say 'Zajebiście kurwa - działa!' | |
else | |
/usr/bin/osascript -e 'display notification "Nosz kurwa - coś jebło!"' | |
say 'Nosz kurwa - coś jebło!' | |
fi | |
} | |
# usage: | |
# $ some_command; ensure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment