X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <4D6FDE68.8040705@cpan.org> References: <4D6F690F DOT 9010100 AT cpan DOT org> <4D6FDE68 DOT 8040705 AT cpan DOT org> Date: Fri, 4 Mar 2011 12:26:53 +0000 Message-ID: Subject: Re: Detect mintty in .zshrc? From: Andy Koppe To: rkitover AT cpan DOT org, cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 3 March 2011 18:31, Rafael Kitover wrote: > I put this block at the top of my .zshrc: > > if [ "$TERM" =3D "cygwin" -o "$TERM" =3D "dumb" ]; then > =C2=A0export RUNNING_IN_CONSOLE=3D1 > =C2=A0export TERM=3Dcygwin > fi > > later I switch on "$RUNNING_IN_CONSOLE" to see if I'm in a real console. How come you need to guard against TERM=3D=3Ddumb? Cygwin shouldn't set it = to that. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple