Skip to content

Instantly share code, notes, and snippets.

@byteface
Created June 15, 2015 05:06
Show Gist options
  • Save byteface/68e68693812dae761505 to your computer and use it in GitHub Desktop.
Save byteface/68e68693812dae761505 to your computer and use it in GitHub Desktop.
slack
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