27

Is it just me?

I have just installed fish using brew install fish and I'm using iTerm2.

Fish shell dark blue

The color is absolutely unreadable. How do I change it to something nicer?

Awais Hussain
  • 1,501
  • 1
  • 14
  • 15

3 Answers3

38

I realized my mistake was with iTerm and not with Fish.

Press CMD+i with an iTerm window open, then click the Colors tab and set it something nicer.

enter image description here

Not sure why this problem didn't show up before, but it seems like it was triggered by the new Fish installation.

Awais Hussain
  • 1,501
  • 1
  • 14
  • 15
  • 5
    To make the change permanently, you need to click 'General' -> 'Copy Current Settings to Selected Profile' – Lane Feb 22 '20 at 01:35
  • 2
    I recommend choosing a better color theme by clicking on `Color Presets...` at the bottom right. I switched to `Pastel (dark background)`: much more readable in one click! – Cornelius Roemer Jun 27 '21 at 12:49
4

Technically that isn't fish doing the coloring. It's the ls command. However, fish does wrap the command in a ls function which tells the command to color the output and use the colors specified by the dircolors command if it is installed. If you don't want the coloring you can create your own ls function that omits the --color=auto flag. Or you can define your own $LS_COLORS env var to keep from using the colors provided by dircolors.

Kurtis Rader
  • 6,734
  • 13
  • 20
1

Just add alias ls="ls" to your ~/.config/fish/config.fish file. if you don't have config.fish on your fish directory, create it!

This trick will change ls command's color to white.

Ali Piry
  • 19
  • 3