Created
October 3, 2018 10:12
-
-
Save hogashi/5b013be2a5d115cb0c52c58921d8009e to your computer and use it in GitHub Desktop.
write into .bashrc on Mac (terminal notifier)
This file contains 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
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