Awesome
znotify
A simple Zsh plugin for sending notifications to other services.
Installation
oh-my-zsh
git clone https://github.com/rudeigerc/znotify ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/znotify
In $HOME/.zshrc
:
plugins=(... znotify)
Znap
znap source rudeigerc/znotify
Manual Installation
source /path/to/znotify.plugin.zsh
Usage
$ do something; znotify -s <service>
Supported Services
- Telegram
- LINE
- Slack
- macOS Notification
Required Environment Variables
- Telegram
ZNOTIFY_TELEGRAM_TOKEN
: Authentication token generated by @BotFatherZNOTIFY_TELEGRAM_CHAT_ID
: Unique identifier for the target chat or username of the target channel (in the format @channelusername)
- LINE
ZNOTIFY_LINE_TOKEN
: Authentication token
- Slack
ZNOTIFY_SLACK_TOKEN
: Authentication token bearing required scopesZNOTIFY_SLACK_CHANNEL
: Channel, private group, or IM channel to send message to
License
MIT