dotfiles/zsh/.oh-my-zsh/custom/alert.zsh

2 lines
165 B
Bash
Raw Normal View History

2016-01-23 00:58:21 +00:00
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$//'\'')"'