zsh: bg_notify: mostrar hostname si es remoto
This commit is contained in:
parent
a40f12f305
commit
50209f489e
1 changed files with 3 additions and 1 deletions
|
@ -17,7 +17,9 @@ if ! (type bgnotify_formatted | grep -q 'function'); then ## allow custom functi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bgnotify () { ## args: (title, subtitle)
|
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 ##
|
## ZSH hooks ##
|
||||||
|
|
Loading…
Reference in a new issue