Skip to content

rudeigerc/znotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages