Skip to content

Instantly share code, notes, and snippets.

@gregersrygg
Last active August 29, 2015 14:00
Show Gist options
  • Save gregersrygg/11372406 to your computer and use it in GitHub Desktop.
Save gregersrygg/11372406 to your computer and use it in GitHub Desktop.
Removed shebang to make it less than 140 bytes
echo -e 'S=${*:-`cat`}\n/usr/bin/osascript -e "display notification \"$S\""'|sudo -s "cd /usr/local/bin;tee notify&&chmod +x notify"
@gregersrygg
Copy link
Author

Works fine in bash without the shebang, but does not work in zsh and probably other shells... Problematic?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment