This is the mail archive of the
mailing list for the Cygwin project.
Re: Detect mintty in .zshrc?
On 3 March 2011 18:31, Rafael Kitover wrote:
> I put this block at the top of my .zshrc:
> if [ "$TERM" = "cygwin" -o "$TERM" = "dumb" ]; then
> Âexport RUNNING_IN_CONSOLE=1
> Âexport TERM=cygwin
> later I switch on "$RUNNING_IN_CONSOLE" to see if I'm in a real console.
How come you need to guard against TERM==dumb? Cygwin shouldn't set it to that.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple