On 2. 11. 2015 23:59, Daniel Goldman wrote:
> My mintty window says "/usr/bin/bash --login" at the top.
> 
> I'd like to know at a glance whether MSYS, MINGW32, or MINGW64 shell. I 
> know how to do that in PS1. That would be OK.
> 
> My suggestion / question is whether some way to customize the top of the 
> mintty window, either I can do it or the maintainers when they build 
> mintty. To me, "/usr/bin/bash --login" doesn't seem at all helpful or 
> informative. But maybe I'm missing something.

PS1 is more powerful than you may think. Try this (taken from Git from Windows):

PS1='\[\033]0;$MSYSTEM:${PWD//[^[:ascii:]]/?}\007\]'

-- 
David Macek

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

------------------------------------------------------------------------------
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to