From 50209f489e101f6fca25ea7a415ac8ac646938da Mon Sep 17 00:00:00 2001 From: Nulo Date: Wed, 22 Dec 2021 21:22:09 -0300 Subject: [PATCH] zsh: bg_notify: mostrar hostname si es remoto --- .config/zsh/bg_notify.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/zsh/bg_notify.zsh b/.config/zsh/bg_notify.zsh index 7e0783c..b3f3d71 100644 --- a/.config/zsh/bg_notify.zsh +++ b/.config/zsh/bg_notify.zsh @@ -17,7 +17,9 @@ if ! (type bgnotify_formatted | grep -q 'function'); then ## allow custom functi fi bgnotify () { ## args: (title, subtitle) - echo -e "\033]777;notify;$1;$2\a" + title="$1" + test "$REMOTE" && title="[$(hostname)] $title" + echo -e "\033]777;notify;$title;$2\a" } ## ZSH hooks ##