From: Samir Benmendil Date: Wed, 23 Apr 2014 00:03:28 +0000 (+0100) Subject: zsh: bell on prompt X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/ca4b3dc2a228e43d83db8430de46f36b8c238290?hp=d09a3884bf8213b4151af72647a78fce75ff9012 zsh: bell on prompt --- diff --git a/zsh/lib/bell.zsh b/zsh/lib/bell.zsh new file mode 100644 index 0000000..e773676 --- /dev/null +++ b/zsh/lib/bell.zsh @@ -0,0 +1,9 @@ +# ring bell when any command is finished +# works best with urxvt.urgentOnBell: true + +function bell { + echo -ne '\a' +} + +autoload -U add-zsh-hook +add-zsh-hook precmd bell