Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Colorizing the output of watch



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