Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Is there a way to check if a shell is running inside mintty?
Probably changing TERM to something different from
With this, users could for example add the following to their .vimrc and conditionally change cursor shape based on the containing terminal:
No, but you can configure mintty to use some other TERM value, and in your
e.g. configure mintty to use TERM=MINTTY, then in your bashrc add:
if [ "$TERM" = "MINTTY" ]; then export TERM=xterm-256color export INSIDE_MINTTY=1 fi