1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-06 07:20:40 +01:00

feat(plugins): add zbell plugin to notify when commands end (#3034)

Closes #3034
This commit is contained in:
bullno1
2014-08-17 17:22:06 +08:00
committed by Marc Cornellà
parent 6b0557afe8
commit 53aefc52e2
2 changed files with 113 additions and 0 deletions

30
plugins/zbell/README.md Normal file
View File

@@ -0,0 +1,30 @@
# zbell plugin
This plugin prints a bell character when a command finishes if it has been
running for longer than a specified duration.
To use it, add `zbell` to the plugins array in your zshrc file:
```zsh
plugins=(... zbell)
```
## Settings
These settings need to be set in your zshrc file, before Oh My Zsh is sourced.
- `zbell_duration`: duration in seconds after which to consider notifying
the end of a command. Default: 15 seconds.
- `zbell_ignore`: if there are programs that you know run long that you
don't want to bell after, then add them to the `zbell_ignore` array.
By default, `$EDITOR` and `$PAGER` are ignored:
```zsh
zbell_ignore=($EDITOR $PAGER)
```
## Author
Adapted from an original version by [Jean-Philippe Ouellet](https://github.com/jpouellet).
Made available under the ISC license.