Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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