Home

Awesome

zsh-notify

Desktop notifications for long-running commands in ZSH.

Supported terminals

Setup and usage

Prerequisites

macOS

Install terminal-notifier.app (default*)

When using tmux on Yosemite:

reattach-to-user-namespace is required to prevent terminal-notifier from hanging (see julienXX/terminal-notifier#115 for details).

Linux/Other

Install notify-send (default*) -- available in libnotify, xdotool and wmctrl


* usage of custom notifiers is described in Configuration

Installation

Just clone this repository and source notify.plugin.zsh in your ~/.zshrc, or see below for instructions on installing with some popular package managers.

Configuration

The behavior of zsh-notify can be modified by using zstyle after sourcing notify.plugin.zsh.

Installation with package managers

Antigen

Add antigen bundle marzocchi/zsh-notify to your .zshrc with your other bundle commands.

Antigen will handle cloning the plugin for you automatically the next time you start zsh. You can also add the plugin to a running zsh with antigen bundle marzocchi/zsh-notify for testing before adding it to your .zshrc.

Fig

Fig adds apps, shortcuts, and autocomplete to your existing terminal.

Install zsh-notify in just one click.

<a href="https://fig.io/plugins/other/zsh-notify_marzocchi" target="_blank"><img src="https://fig.io/badges/install-with-fig.svg" /></a>

Oh-My-Zsh

  1. git clone git@github.com:marzocchi/zsh-notify.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/notify
  2. Add zsh-notify to your plugin list - edit ~/.zshrc and change plugins=(...) to plugins=(... notify)

Note: when cloning, specify the target directory as notify since Oh-My-Zsh expects the plugin's initialization file to have the same name as it's directory.

Zgen

Add zgen load marzocchi/zsh-notify to your .zshrc file in the same function you're doing your other zgen load calls in.