Skip to content

Commit

Permalink
zc: Better coloring of -v status messages about sending to sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
psprint committed Sep 29, 2016
1 parent 9598182 commit 06ddbef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zc
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 06ddbef

Please sign in to comment.