dbcli / mycli

A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.
http://mycli.net
Other
11.49k stars 663 forks source link

Add configurable beep to notify the user after long queries #1044

Closed rolandwalker closed 2 years ago

rolandwalker commented 2 years ago

Description

Add beep_after_seconds option to ~/.myclirc, defaulting to 0 (off), to ring the terminal bell after completing long queries of the configured number of seconds.

There are no additional tests. I gave up trying to figure out how to test for output to STDERR, and my local setup is not perfect. The timing option doesn't have tests either, most likely because it is nondeterministic.

Checklist

amjith commented 2 years ago

Looks good to me. 🥭