zsh: bg_notify: mostrar hostname si es remoto

This commit is contained in:
Cat /dev/Nulo 2021-12-22 21:22:09 -03:00
parent a40f12f305
commit 50209f489e

View file

@ -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 ##