From 06ddbefd3c4742f2839fb61127747adab8d5d567 Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Thu, 29 Sep 2016 17:41:30 +0200 Subject: [PATCH] zc: Better coloring of -v status messages about sending to sessions --- zc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zc b/zc index 3466ab1..7606e1b 100644 --- a/zc +++ b/zc @@ -183,9 +183,9 @@ exec {fd}>&- if (( ${quiet} == 0 )); then __zconvey_get_name_of_id "$id" if [[ -n "$REPLY" ]]; then - pinfo2 "Zconvey successfully sent command to session $id (name: $REPLY)" + print "Zconvey successfully sent command to \033[1;32msession $id\033[0m (name: \033[1;32m$REPLY\033[0m)" else - pinfo2 "Zconvey successfully sent command to session $id" + print "Zconvey successfully sent command to \033[1;32msession $id\033[0m" fi local busyfile="$ZCONVEY_OTHER_DIR/${id}.busy" [ -e "$busyfile" ] && print "The session is busy \033[1;33m($(<$busyfile))\033[0m (command will time out after ${ZCONVEY_CONFIG[expire_seconds]}s)"