Lsd: Files and directories all show up using same color

Created on 24 May 2019  路  9Comments  路  Source: Peltoche/lsd

Expected behavior

Files and directories to be colored according to type.

Actual behavior

Files and folders are all displayed using the same color (foreground / white).

lsd_color_bug_example

System info

  • Arch Linux
  • lsd 0.14.0 (installed via pacman)
kinbug

Most helpful comment

FYI - in case anyone else runs into this issue, oh-my-zsh sets LS_COLORS and LSCOLORS by default. There appears to be a configuration option to control this behavior, although it didn't work for me.

Instead, simply add something like this near the bottom of your ~/.zshrc:

unset LSCOLORS
unset LS_COLORS

All 9 comments

Hi @khughitt , thanks for the report.

First, can you update to the 0.15.1 in order to see if the bug is still here?

I checked and the issue appears the same with 0.15.1.

Upon further inspection, it seems the issue might be specific to termite -- the output for lsd appears fine in xterm, but is lacking color as above when I use it in termite, even with the default configuration.

I'm having the same issue, after adding export TERM="termite" to my .zshrc file in order to fix an unrelated bug, i lost the folder/file colors too. Previously it worked out fine even in termite, but it does appear to be a termite bug for me aswell.

Curious... I haved tried on termite v15 and it works well for me.

That said my TERM env variable value is xterm-termite. You should try with this value.

My term is set to xterm-termite and issue still appears in v15.

Can you think of any other factors that might be influencing the output?

I doubt this is helpful because of differing implementations, but just as a note, colorls does handle colors correctly in my case.

Do you have an env variable LS_COLORS or LSCOLORS? These variables override the default colors behavior

I do! And indeed, unsetting them fixed the issue. Going to close the issue. Good catch!

FYI - in case anyone else runs into this issue, oh-my-zsh sets LS_COLORS and LSCOLORS by default. There appears to be a configuration option to control this behavior, although it didn't work for me.

Instead, simply add something like this near the bottom of your ~/.zshrc:

unset LSCOLORS
unset LS_COLORS

FYI - in case anyone else runs into this issue, oh-my-zsh sets LS_COLORS and LSCOLORS by default. There appears to be a configuration option to control this behavior, although it didn't work for me.

Instead, simply add something like this near the bottom of your ~/.zshrc:

unset LSCOLORS
unset LS_COLORS

Worked for alacritty term (i was using urxvt before and didn't come across this problem)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

saumyajyoti picture saumyajyoti  路  7Comments

meain picture meain  路  8Comments

Phuker picture Phuker  路  5Comments

rediffusion picture rediffusion  路  5Comments

cengizIO picture cengizIO  路  3Comments