| make () | |
| { | |
| start=$(date +%s); | |
| command make "$@" | |
| ret=$? | |
| if [[ ${ret} -eq 0 ]]; then | |
| icon=checkbox; | |
| else | |
| icon=computer-fail; | |
| fi; | |
| nl=' | |
| '; | |
| ive_switched_to_hacker_news=4; | |
| if command -V notify-send &> /dev/null && [[ $(( $(date +%s) - ${start} )) -gt ${ive_switched_to_hacker_news} ]]; then | |
| notify-send 'Done compiling, back to work:' "${nl}$(hostname):${nl}$(pwd)" --icon=${icon} --expire-time=15000; | |
| fi | |
| return ${ret} | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment