Last active
August 29, 2015 14:00
-
-
Save gregersrygg/11372406 to your computer and use it in GitHub Desktop.
Removed shebang to make it less than 140 bytes
This file contains hidden or 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
echo -e 'S=${*:-`cat`}\n/usr/bin/osascript -e "display notification \"$S\""'|sudo -s "cd /usr/local/bin;tee notify&&chmod +x notify" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works fine in bash without the shebang, but does not work in zsh and probably other shells... Problematic?