# HG changeset patch # User nanaya # Date 1736330573 -32400 # Node ID 4d037b0a9f417238c19988a4b94da7147ae03f7d # Parent 3e31009ab5ccd12001697108964544ac874b4202 [bashrc] Better FreeBSD compat with Windows Terminal Reference: https://github.com/microsoft/terminal/discussions/18332 diff -r 3e31009ab5cc -r 4d037b0a9f41 rc/bashrc --- 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