Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Colorizing the output of watch
- X-seq: zsh-users 13006
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: "Richard Hartmann" <richih.mailinglist@xxxxxxxxx>
- Subject: Re: Colorizing the output of watch
- Date: Tue, 8 Jul 2008 16:50:18 +0200
- Cc: "Zsh Users" <zsh-users@xxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=fhHsAUN0GsZYt64SGtBy8OOd6K5KmsnyBfdli1bKfoc=; b=mQlIL6Ewq4y6eJMcIEoksrohMk8LKN9NiVzvP+kJISb/naOLCULWEgP2tfefmJdria UvmFjUCGmLxi+KSpS9Cf6l2cyBLWYRm4OjnjUt01C7CmIEmfmIaYJlOiofRbvCR2WHfE L5UzaARCSo510CMZ8hpJqZl3tDRV47ygM1lTs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=BXQfSfuIsSuIJn0vaTCN0zIFpELqLHPrxMvmX6FDNFw0TRLUCjjFcXT4Dkcgo9VLZH QvcRXPFggqOxX8taQDyn+1WLESi4KvSdkNPWX8dNaMAL3qP8EpErY7a0ycHzXoDJhty4 GMui9ffLkIzOay6QLBqzoABmgPIgKipmkBaAk=
- In-reply-to: <2d460de70807080738x1b80092u9736203b46ff9724@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <2d460de70807080738x1b80092u9736203b46ff9724@xxxxxxxxxxxxxx>
2008/7/8 Richard Hartmann <richih.mailinglist@xxxxxxxxx>:
> Hi all,
>
> I am using
>
> watch=(notme)
>
> to see what happens on the boxen I am on. I was wondering if there is a
> built-in way to colorize the output of that depending on if they log on
> or off. If I could colorize depending on where the logins come from,
> that would be even neater :)
The man page says you can use %(a:true-exp:false-exp) where true means
logged in and false is logged out. It doesn't look like you can use the
%F color escapes, but you can probably hardcode the sequences in there
without any problems.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author