Skip to content

Instantly share code, notes, and snippets.

@takesato
Created July 8, 2015 09:01
Show Gist options
  • Save takesato/d1d0bba927c2b5a66c35 to your computer and use it in GitHub Desktop.
Save takesato/d1d0bba927c2b5a66c35 to your computer and use it in GitHub Desktop.
コマンド実行したら terminal-notify で通知.
local COMMAND=""
precmd() {
terminal-notifier -message $COMMAND
COMMAND=""
}
preexec () {
COMMAND="${1}"
}
@takesato
Copy link
Author

takesato commented Jul 8, 2015

terminal-notifer のところを slack の web-hook とかに変えると色々捗りそう

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