Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deyvisonrocha/pantheon-terminal-notify-zsh-plugin
background notifications for long running commands! Supports Elementary OS Freya.
https://github.com/deyvisonrocha/pantheon-terminal-notify-zsh-plugin
Last synced: about 1 month ago
JSON representation
background notifications for long running commands! Supports Elementary OS Freya.
- Host: GitHub
- URL: https://github.com/deyvisonrocha/pantheon-terminal-notify-zsh-plugin
- Owner: deyvisonrocha
- License: mit
- Created: 2015-04-29T17:55:48.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-11-27T16:23:49.000Z (over 3 years ago)
- Last Synced: 2024-01-24T12:13:19.809Z (4 months ago)
- Language: Shell
- Size: 125 KB
- Stars: 11
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-zsh-plugins - pantheon-terminal-notify - Background notifications for long running commands. Supports Elementary OS Freya. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - pantheon-terminal-notify - Background notifications for long running commands. Supports Elementary OS Freya. (Plugins / ZSH on Windows)
- awesome-zsh-plugins - pantheon-terminal-notify - Background notifications for long running commands. Supports Elementary OS Freya. (Plugins / Zinit (née zplugin))
- awesome-zsh-plugins - pantheon-terminal-notify - Background notifications for long running commands. Supports Elementary OS Freya. (Plugins / ZSH on Windows)
README
# pantheon-terminal-notify zsh plugin
background notifications for long running commands! Supports Elementary OS Freya.
### Package from [t413/zsh-background-notify](https://github.com/t413/zsh-background-notify)
Standalone homepage: [deyvisonrocha/pantheon-terminal-notify-zsh-plugin](https://github.com/deyvisonrocha/pantheon-terminal-notify-zsh-plugin)
----------------------------------
## How to use!
Just add pantheon-terminal-notify to your plugins list in your `.zshrc`
## Screenshot
![Pantheon Terminal Notify](https://cloud.githubusercontent.com/assets/686067/7397992/3c371c8c-ee82-11e4-9249-4ec10a580c70.png)
## Configuration
One can configure a few things:
- `pantheon_terminal_notify_threshold` sets the notification threshold time (default 5 seconds)
- `function pantheon_terminal_notify_threshold` lets you change the notificationUse these by adding a function definition before the your call to source. Example:
~~~ sh
pantheon_terminal_notify_threshold=4 ## set your own notification thresholdfunction pantheon_terminal_notify_formatted {
## $1=exit_status, $2=command, $3=elapsed_time
[ $1 -eq 0 ] && title="Holy Smokes Batman!" || title="Holy Graf Zeppelin!"
pantheon_terminal_notify "$title -- after $3 s" "$2";
}plugins=(git pantheon_terminal_notify) ## add to plugins list
source $ZSH/oh-my-zsh.sh ## existing source call
~~~