Grimoire-
Command
.es

GNU+Linux command memo

Desktop notification of long running commands via ZSH

Activer les notifications libnotify de tâches shell longues

This tip requires a working oh-my-zsh plugin management.

$ vi ~/.zshrc  (1)
plugins=( … bgnotify … )  (2)
1 Edit your .zshrc file
2 Add the bgnotify plugin to your list of plugins loaded at startup

Open a new console, and launch a long command.

$ yes
y
y
y
 […]
(1)
1 kbd:[CTRL + C] to kill the yes command

A libnotify small window appears (may be) at the upper left corner of your screen with a message like :

#fail (took 22s)
yes
  • #fail or #win to tell if the command ended right or not.

  • (took 22s) the time that the command used

  • yes the command in question