Skip to content

Instantly share code, notes, and snippets.

@jim-plus
Created September 9, 2023 19:38
Show Gist options
  • Save jim-plus/f50e67d17cdeaa82c03ca59571a01956 to your computer and use it in GitHub Desktop.
Save jim-plus/f50e67d17cdeaa82c03ca59571a01956 to your computer and use it in GitHub Desktop.
.bashrc code snippet to auto-enable de facto 24-bit color when an xterm is detected; works with putty and cygwin terminal
if [[ "$TERM" == "xterm" ]]
then
export COLORTERM=truecolor
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment