Last active
May 17, 2025 18:19
use italics in iterm2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ infocmp -1 xterm-256color ; echo "\tsitm=\\E[3m,\n\tritm=\\E[23m,"; } > /tmp/xterm-256color.terminfo | |
tic /tmp/xterm-256color.terminfo |
how do I use this?
Thank You!
Simply copy these commands to your terminal and it will work. :)
Thanks for this! I've seen a lot of people online create a whole new terminal profile (e.g. xterm-256color-italic
), but I prefer just updating the existing one.
This didn't work without a few changes though. The echo
here doesn't format correctly. This worked:
echo -e "\tsitm=\\\E[3m,\n\tritm=\\\E[23m,"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's simple and awesome compared to other solutions!!! thanks a lot!!