diff options
author | Tim O'Brien <timo@t413.com> | 2014-11-06 10:31:27 -0800 |
---|---|---|
committer | Tim O'Brien <timo@t413.com> | 2014-11-06 10:34:47 -0800 |
commit | 0b0cc2cdea1e3b3e4af78d8d4a9992be468031eb (patch) | |
tree | 9b6efcaefe4f111942cfa421da1eb744961cf3f4 /plugins/bgnotify | |
parent | e16d3e45d30fbf981f503b4d078d84c71a070a1d (diff) | |
download | zsh-0b0cc2cdea1e3b3e4af78d8d4a9992be468031eb.tar.gz zsh-0b0cc2cdea1e3b3e4af78d8d4a9992be468031eb.tar.bz2 zsh-0b0cc2cdea1e3b3e4af78d8d4a9992be468031eb.zip |
Fixed math on linux, removed debug echo.
Diffstat (limited to 'plugins/bgnotify')
-rwxr-xr-x | plugins/bgnotify/bgnotify.plugin.zsh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/bgnotify/bgnotify.plugin.zsh b/plugins/bgnotify/bgnotify.plugin.zsh index f204d9dc8..b5fb76f7e 100755 --- a/plugins/bgnotify/bgnotify.plugin.zsh +++ b/plugins/bgnotify/bgnotify.plugin.zsh @@ -13,7 +13,6 @@ autoload -Uz add-zsh-hook || { print "can't add zsh hook!"; return } ## definitions ## if ! (type notify_formatted | grep -q 'function'); then - echo "using default notify_formatted" function bgnotify_formatted { ## exit_status, command, elapsed_time [ $1 -eq 0 ] && title="#win (took $3 s)" || title="#fail (took $3 s)" @@ -50,8 +49,8 @@ bgnotify_begin() { bgnotify_end() { didexit=$? - elapsed=$(( $EPOCHSECONDS - $bgnotify_timestamp )) - past_threshold=$(( $elapsed >= $bgnotify_threshold )) + elapsed=$(( EPOCHSECONDS - bgnotify_timestamp )) + past_threshold=$(( elapsed >= bgnotify_threshold )) if (( bgnotify_timestamp > 0 )) && (( past_threshold )); then if [ $(currentWindowId) != "$bgnotify_windowid" ]; then print -n "\a" |