Created
June 15, 2015 05:06
-
-
Save byteface/68e68693812dae761505 to your computer and use it in GitHub Desktop.
slack
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
bash profile addition to pass messages to slack | |
function slack() | |
{ | |
join="{ \"username\": \"mike\", \"text\": \""$@"\" , \"icon_emoji\": \":ghost:\"}" | |
curl -X POST --data-urlencode "payload=$join" https://hooks.slack.com/services/YOUR/PRIVATE/CODE | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment