iTerm2, solarized, ssh, and ls colors

It took me a while to figure this out, but in the end I found out why I couldn’t see ls colors when logging over SSH to a linux box from iTerm2 using the solarized color scheme. It turns out solarized does something that makes the ls colors indistinguishable over ssh. My solution was to have LS_COLORS set to “di=00;34:ln=00;35:so=00;32:pi=01;33:ex=00;31:bd=00;34” on the Linux box I ssh’ed into. You obviously must have an alias ls –color=auto and the right TERM variable (I use xterm-256color) on that box too. For BSD ls I use LSCOLORS set to “gxfxbEaEBxxEhEhBaDaCaD” to get ls colors.

Comments 2

  1. micimize wrote:

    You also have to make sure the “Draw bold text in bright colours” setting for iterm2 is unchecked, whichi is a tricky one. (

    Posted 11 Apr 2014 at 12:00
  2. Matteo wrote:


    Posted 02 Jun 2014 at 18:33

Post a Comment

Your email is never published nor shared. Required fields are marked *