zsh-background-notify
zsh-background-notify copied to clipboard
Possible typo in README.md instructions
To override the default output you have
function notify_formatted {
## $1=exit_status, $2=command, $3=elapsed_time
[ $1 -eq 0 ] && title="Holy Smokes Batman!" || title="Holy Graf Zeppelin!"
bgnotify "$title -- after $3 s" "$2";
}
but I think the function name should be bgnotify_formatted
function bgnotify_formatted {
## $1=exit_status, $2=command, $3=elapsed_time
[ $1 -eq 0 ] && title="Great Success!" || title="Epic Fail!"
bgnotify "$title -- after $3 s" "$2";
}
I was getting the default output message until I renamed the function in my ~/.zshrc