Re: [PATCH] git-status: colorize status output
- From
- Matthias Lederhofer <matled@gmx.net>
- Date
- Aug 5, 2006, 20:27 UTC
- Message-ID
- <20060805202759.GA16186@moooo.ath.cx>
- In-Reply-To
- <20060805194513.GA4836@sigio.intra.peff.net>
Jeff King <peff@peff.net> wrote:
> > Is there any way to do isatty() from shell scripts? > > As Junio said, test -t. :) Is there interest in me adding that feature?
I would suggest that all scripts that use colors have a always/auto/never (with boolean fallback) option and also honor pager.color if the pager is in use.