Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/rudeigerc/znotify

A simple Zsh plugin for sending notifications to other services
https://github.com/rudeigerc/znotify

notification zsh zsh-plugin

Last synced: 2 months ago
JSON representation

A simple Zsh plugin for sending notifications to other services

Lists

README

        

# znotify

A simple Zsh plugin for sending notifications to other services.

## Installation

### oh-my-zsh

```shell
git clone https://github.com/rudeigerc/znotify ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/znotify
```

In `$HOME/.zshrc`:

```shell
plugins=(... znotify)
```

### Znap

```shell
znap source rudeigerc/znotify
```

### Manual Installation

```shell
source /path/to/znotify.plugin.zsh
```

## Usage

```shell
$ do something; znotify -s
```

### Supported Services

- Telegram
- LINE
- Slack
- macOS Notification

## Required Environment Variables

- [Telegram](https://core.telegram.org/bots/api#sendmessage)
- `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](https://notify-bot.line.me/doc/en/)
- `ZNOTIFY_LINE_TOKEN`: Authentication token
- [Slack](https://api.slack.com/methods/chat.postMessage)
- `ZNOTIFY_SLACK_TOKEN`: Authentication token bearing required scopes
- `ZNOTIFY_SLACK_CHANNEL`: Channel, private group, or IM channel to send message to

## License

MIT