How do I add color in Mac terminal?

How do I add color in Mac terminal?

Most themes have ANSI color on by default, but enable it if it’s not.

  1. Pull down the Terminal menu and choose “Preferences”, then click the “Settings” tab.
  2. Choose your profile/theme from the left side list, then under the “Text” tab check the boxes for “Use bold fonts” and “Use bright colors for bold text”

How do I change font color in Terminal?

You can use custom colors for the text and background in Terminal:

  1. Press the menu button in the top-right corner of the window and select Preferences.
  2. In the sidebar, select your current profile in the Profiles section.
  3. Select Colors.
  4. Make sure that Use colors from system theme is unchecked.

How do I import my iTerm color scheme?

Activating theme

  1. iTerm2 > Preferences > Profiles > Colors Tab.
  2. Open the Color Presets… drop-down in the bottom right corner.
  3. Select Import… from the list.
  4. Select the Dracula.itermcolors file.
  5. Select the Dracula from Color Presets…

How to color match REGEXP in iTerm2?

But as you asked for an iTerm2 solution you are in luck! Use the Triggers feature to color text matching regexp. ..then add in iTerm -> Preferences -> Profiles -> Advanced -> Triggers , a Trigger like this: ..that will match the command part of each line, which will start to look like this:

Is there a way to color the iTERM?

The iTerm solution works but there seems to be a slight delay in the coloring. If one stops typing for a second, the whole line is colored as expected. Here’s what worked for me. Try it and let me know.

Is there a way to color the command prompt?

AFAIK there is no any UNIXy way to color anything else than the prompt. But as you asked for an iTerm2 solution you are in luck! Use the Triggers feature to color text matching regexp. ..then add in iTerm -> Preferences -> Profiles -> Advanced -> Triggers , a Trigger like this: