dotfiles/zsh/alert.zsh
2016-01-23 13:58:21 +13:00

1 line
165 B
Bash

alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'