Skip to content

Instantly share code, notes, and snippets.

View livingsilver94's full-sized avatar
๐Ÿƒ
Doing what I like

Fabio livingsilver94

๐Ÿƒ
Doing what I like
View GitHub Profile
@livingsilver94
livingsilver94 / zsh_notifications.zsh
Last active November 19, 2019 14:22 — forked from jpouellet/zbell.sh
Make Zsh show a notification when long-running commands finish. The notification will show useful information such as the exit status and what command terminated.
# Make Zsh show a notification when long-running commands finish.
# You can tweak some parameters by editing the according variable.
#
# Written by Jean-Philippe Ouellet <jpo@vt.edu>
# Made available under the ISC license.
# Edited by Fabio Forni.
[[ -o interactive ]] || return
zmodload zsh/datetime || return
autoload -Uz add-zsh-hook || return