Mercurial > ec-dotfiles
diff rc/bashrc @ 731:4d037b0a9f41 default tip
[bashrc] Better FreeBSD compat with Windows Terminal
Reference: https://github.com/microsoft/terminal/discussions/18332
author | nanaya <me@nanaya.net> |
---|---|
date | Wed, 08 Jan 2025 19:02:53 +0900 |
parents | 3f0fd2156612 |
children |
line wrap: on
line diff
--- a/rc/bashrc Wed Jan 08 18:00:15 2025 +0900 +++ b/rc/bashrc Wed Jan 08 19:02:53 2025 +0900 @@ -135,6 +135,11 @@ alias top="top -P" # The grep isn't GNU grep but supports all of its commands _has_gnu_grep=y + # The termcap on FreeBSD doesn't quite work well with Windows Terminal. + # Notably if tmux is started with xterm-256color, bold color stops working. + # This breaks status bar coloring but better than having half broken + # content. + [ xterm-256color = "${TERM}" ] && export TERM=xterm ;; NetBSD|DragonFly) # The grep isn't GNU grep but supports all of its commands