msys2 / MSYS2-packages

Package scripts for MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
1.29k stars 490 forks source link

Exporting TERM in /etc/profile breaks screen/tmux #486

Open ghost opened 8 years ago

ghost commented 8 years ago

the TERM environmental variable is set to xterm-256color in MSYS2-packages/filesystem/profile will override changes made by applications. One example of this is screen and tmux which need to set TERM to screen/screen-256color to work properly. I assume this is done to make mintty look prettier so I'd suggest configuring it within a mintty configuration file so avoid overriding TERM in all circumstances.

elieux commented 8 years ago

Agreed. I was trying to get some reports on our ML whether there's any downside to this and I haven't gotten around to looking at the topic again since. Also see https://sourceforge.net/p/msys2/tickets/241/.