rudeigerc / znotify

A simple Zsh plugin for sending notifications to other services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 @BotFather
    • ZNOTIFY_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 scopes
    • ZNOTIFY_SLACK_CHANNEL: Channel, private group, or IM channel to send message to

License

MIT

About

A simple Zsh plugin for sending notifications to other services

License:MIT License


Languages

Language:Shell 100.0%