Detect mintty in .zshrc?
Andy Koppe
andy.koppe@gmail.com
Fri Mar 4 12:26:00 GMT 2011
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
> 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==dumb? 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
More information about the Cygwin
mailing list