When do I get colorized LS output from iTerm2?

When do I get colorized LS output from iTerm2?

Both iTerm2 and Terminal display ls locally as colored, and Terminal works properly when SSH’d over to the work machine. The only time I’m not getting colorized ls output is when I use iTerm2 to SSH to my work machine. Terminal produces colorized ls output when SSH’d to my work machine and so does PuTTY on Windows.

How to get coloured command line over SSH?

Since the colors worked fine while being loggged in directly, I just un-uncommented the line force_color_prompt=yes in the file ~/.bashrc, that gave me colors over ssh, too: What’s the content of your XTERM env variable on the server when you connect to it?

Why is my iTerm terminal not showing colors?

If you’re still not seeing colors on your remote (or local) session follow these steps: In iTerm verify that you’re sending a terminal type that supports colors. Open the preferences window -> Profiles -> Default -> Terminal. I’d recommend putting xterm-256color as the Terminal Type.

Can you use bashrc in a SSH session?

You can use bashrc in your ssh session by adding the following to ~/.bash_profile: Since the colors worked fine while being loggged in directly, I just un-uncommented the line force_color_prompt=yes in the file ~/.bashrc, that gave me colors over ssh, too:

How can I configure Mac terminal to have color LS output?

How can I configure Mac Terminal to have color ls output? I am using MacOS 10.5 Stack Exchange Network Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

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: