Skip to content

Instantly share code, notes, and snippets.

@hogashi
Created October 3, 2018 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hogashi/5b013be2a5d115cb0c52c58921d8009e to your computer and use it in GitHub Desktop.
Save hogashi/5b013be2a5d115cb0c52c58921d8009e to your computer and use it in GitHub Desktop.
write into .bashrc on Mac (terminal notifier)
function _nt() {
COMSTR=$@
$COMSTR
RETNUM=$?
terminal-notifier -message "$RETNUM : \"$COMSTR\""
return $RETNUM
}
alias nt="_nt $READLINE_LINE"
alias ntdosome="PREVAR=hogefuga nt dosomecommand --with-some-option -- foo bar"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment