From bc9cd2f1eadd746d125e16ba66e6ab6932f6b40f Mon Sep 17 00:00:00 2001 From: Nulo Date: Mon, 17 Jan 2022 23:54:22 -0300 Subject: [PATCH] bash: Desactivar notificaciones OSC 777 Son buggy --- .bashrc | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/.bashrc b/.bashrc index b16f170..2d6364e 100644 --- a/.bashrc +++ b/.bashrc @@ -50,23 +50,3 @@ if ! "$REMOTE"; then fi fi -# ------------------------------------------------------------------------------ -# Notifications through OSC 777 -# Based on https://github.com/t413/zsh-background-notify/blob/master/bgnotify.plugin.zsh - -last_command () { - history 1 | cut -c 8- -} - -notify () { ## args: (title, subtitle) - echo -ne "\033]777;notify;[$(hostname)] $1;$2\a" -} -notify_command () { - if test $? -eq 0; then - notify "success" "$(last_command)" - else - notify "fail" "$(last_command)" - fi -} - -PROMPT_COMMAND="notify_command;$PROMPT_COMMAND"