zsh-background-notify icon indicating copy to clipboard operation
zsh-background-notify copied to clipboard

Possible typo in README.md instructions

Open lacostenycoder opened this issue 8 years ago • 0 comments

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

lacostenycoder avatar Mar 13 '17 21:03 lacostenycoder