feat(bgnotify): add option to disable terminal bell (#12077)

This commit is contained in:
Benjamin Neff
2023-12-01 17:09:48 +01:00
committed by GitHub
parent b6afbbea3a
commit 0a9d82780e
2 changed files with 6 additions and 1 deletions

View File

@@ -35,12 +35,14 @@ Just add bgnotify to your plugins list in your `.zshrc`
One can configure a few things:
- `bgnotify_bell` enabled or disables the terminal bell (default true)
- `bgnotify_threshold` sets the notification threshold time (default 6 seconds)
- `function bgnotify_formatted` lets you change the notification. You can for instance customize the message and pass in an icon.
Use these by adding a function definition before the your call to source. Example:
```sh
bgnotify_bell=false ## disable terminal bell
bgnotify_threshold=4 ## set your own notification threshold
function bgnotify_formatted {